bcachefs: Inode updates should generally be BTREE_INSERT_NOFAIL
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 9 Nov 2021 22:20:06 +0000 (17:20 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:16 +0000 (17:09 -0400)
commit770e821485e0021ea325f7aa2133fddb46ba0821
tree54d6098f1de000c119d515e853947938e47c6d09
parent74163da7c81ac5bb4ecd625f9e41a241ec5d8758
bcachefs: Inode updates should generally be BTREE_INSERT_NOFAIL

This fixes a bug where i_size may become inconsistent between the VFS
cache and the btree, when the filesystem is nearly full.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/reflink.c