bcachefs: Don't unlink iters on unsuccessful commit
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 18 Jul 2019 21:32:20 +0000 (17:32 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:24 +0000 (17:08 -0400)
commit8627f674bc98d6eeb91f885ca1259d29a0e7aa34
treeed7f10188c675c00ec179943f335f9adb8e1fd82
parenta9058a223fd2168d96195df3b918e395be8869e3
bcachefs: Don't unlink iters on unsuccessful commit

Where unlink_on_commit is used, on unsuccessfull commit we're likely
retrying the whole update and were going to be using the same iterators
again.

The management of multiple iterators needs to be gone over a fair bit
more at some point...

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