]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: Fix fsck warning about btree_trans not passed to fsck error
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 15 Jul 2024 23:03:17 +0000 (19:03 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 18 Jul 2024 22:33:30 +0000 (18:33 -0400)
commit2c4c17fefc49e895e322b3ab0f49d946f384f71b
tree2ed766fe085fda562fdca0cba789e6b0d9238e6c
parentf12410bb7dddc64b58cbd6fca224b82ff40c5807
bcachefs: Fix fsck warning about btree_trans not passed to fsck error

If a btree_trans is in use it's supposed to be passed to fsck_err so
that it can be unlocked if we're waiting on userspace input; but the
btree IO paths do call fsck errors where a btree_trans exists on the
stack but it's not passed through.

But it's ok, because it's unlocked while doing IO.

Fixes: a850bde6498b ("bcachefs: fsck_err() may now take a btree_trans")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c