projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc6d2d1
)
bcachefs: Fix __bch2_fsck_err() warning
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 19 Oct 2024 21:23:10 +0000
(17:23 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 20 Oct 2024 20:50:14 +0000
(16:50 -0400)
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>
fs/bcachefs/error.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/error.c
b/fs/bcachefs/error.c
index
7a79f69
..
b679def
100644
(file)
--- a/
fs/bcachefs/error.c
+++ b/
fs/bcachefs/error.c
@@
-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))