bcachefs: Split extents if necessary in bch2_trans_update()
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 19 May 2021 03:17:03 +0000 (23:17 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:03 +0000 (17:09 -0400)
commitd6462f494dcf57422f36f9c4704c2c128354f6c4
tree6f81d124de58fa24fd1d4e394ba13ba43038bb65
parentef1b20924b0f584740094fdf7166acfb80338f0c
bcachefs: Split extents if necessary in bch2_trans_update()

Currently, we handle multiple overlapping extents in the same
transaction commit by doing fixups in bch2_trans_update() - this patch
extents that to split updates when necessary. The next patch that
changes the reflink code to not fragment extents when making them
indirect will require this.

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