mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
bcachefs: Fix __bch2_fsck_err() warning
We only warn about having a btree_trans that wasn't passed in if we'll be prompting. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
bc6d2d1041
commit
eb5db64c45
@ -251,7 +251,10 @@ int __bch2_fsck_err(struct bch_fs *c,
|
||||
* delete the key)
|
||||
* - and we don't need to warn if we're not prompting
|
||||
*/
|
||||
WARN_ON(!(flags & FSCK_AUTOFIX) && !trans && bch2_current_has_btree_trans(c));
|
||||
WARN_ON((flags & FSCK_CAN_FIX) &&
|
||||
!(flags & FSCK_AUTOFIX) &&
|
||||
!trans &&
|
||||
bch2_current_has_btree_trans(c));
|
||||
|
||||
if ((flags & FSCK_CAN_FIX) &&
|
||||
test_bit(err, c->sb.errors_silent))
|
||||
|
Loading…
Reference in New Issue
Block a user