bcachefs: Fix a transaction path overflow
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 18 Nov 2022 00:07:40 +0000 (19:07 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:46 +0000 (17:09 -0400)
commit96c2e01083f19c75421002bebb819a668839184e
treea788bbcf00f2110ebbcdc6e173517fa8fad29beb
parent42af0ad569edbfcd252e9abf0badd97b895c34be
bcachefs: Fix a transaction path overflow

It turns out we need bch2_extent_trim_atomi() even when we're deleting
extents one at a time because it's possible for one reflink_p to
reference arbitrarily many reflink_v extents. This doesn't normally
happen, but the data move path can fragment existing extents in the
background.

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