]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Kill for_each_btree_key()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 8 Dec 2023 04:28:26 +0000 (23:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:40 +0000 (11:47 -0500)
commit27b2df982fa3343552e8a98a744581da69064207
treefba3296b6d73abb39a85a89c1ce6916958e291a1
parent8c066edeb43b067badac984b6a0493d07d15c00a
bcachefs: Kill for_each_btree_key()

for_each_btree_key() handles transaction restarts, like
for_each_btree_key2(), but only calls bch2_trans_begin() after a
transaction restart - for_each_btree_key2() wraps every loop iteration
in a transaction.

The for_each_btree_key() behaviour is problematic when it leads to
holding the SRCU lock that prevents key cache reclaim for an unbounded
amount of time - there's no real need to keep it around.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/btree_gc.c
fs/bcachefs/btree_iter.h
fs/bcachefs/ec.c
fs/bcachefs/fsck.c
fs/bcachefs/inode.c
fs/bcachefs/move.c
fs/bcachefs/recovery.c
fs/bcachefs/snapshot.c