bcachefs: Don't run transaction hooks multiple times
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 15 Mar 2023 18:41:07 +0000 (14:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:57 +0000 (17:09 -0400)
commit56cc033dfcf002eb8a957097fe7290546829b7c0
treefae78c7328e94d59e169f228f70815b55cea410a
parent26559553e47c9f2a14b5254cb307fc755ac316c8
bcachefs: Don't run transaction hooks multiple times

transaction hooks aren't supposed to run unless we know the transaction
is going to commit succesfully: this fixes a bug with attempting to
delete a subvolume multiple times.

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