bcachefs: bch2_extent_update_i_size_sectors()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 15 Nov 2022 04:41:18 +0000 (23:41 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:51 +0000 (17:09 -0400)
commit2f1f7fe98d1da65c5ef646a90770b17cb012f1ee
treeeb57b558343f268419660c57cdd788ea651cf93f
parent70de7a47e2c56adbd76c24c80e95cf2203a9e74f
bcachefs: bch2_extent_update_i_size_sectors()

In the io path, when we do the extent update we also have to update the
inode - for i_size and i_sectors updates, as well as for bi_journal_seq
for fsync.

This factors that out into a new helper which will be used in the new
nocow mode, in the unwritten extent conversion path.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io.c