bcachefs: bch2_trans_reset() calls should be at the tops of loops
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 20 Dec 2019 21:35:24 +0000 (16:35 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:33 +0000 (17:08 -0400)
commita8abd3a7f63efe4a366ae5aba10b2466feba39d7
treeea1d23cd85f294ca2ea459949f495f207978d8e6
parent780c4e43f8f8986bb8d97d654cb17edd0dfca4b4
bcachefs: bch2_trans_reset() calls should be at the tops of loops

It needs to be called when we get -EINTR due to e.g. lock restart - this
fixes a transaction iterators overflow bug.

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