diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-13 06:11:14 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:01 +0200 |
commit | 73da30e8e0f8ffcc91691934f202ab6e2f985604 (patch) | |
tree | 8b1698545f7dfd0a4de5b195f7ccbb8f7a813cbd /fs/bcachefs/fsck.c | |
parent | bcachefs: Replace a BUG_ON() with fatal error (diff) | |
download | linux-73da30e8e0f8ffcc91691934f202ab6e2f985604.tar.xz linux-73da30e8e0f8ffcc91691934f202ab6e2f985604.zip |
bcachefs: Fix check_overlapping_extents()
A error check had a flipped conditional - whoops.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fsck.c')
-rw-r--r-- | fs/bcachefs/fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index eb3609aa4593..1b3ee66265c9 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -1176,7 +1176,7 @@ static int check_overlapping_extents(struct btree_trans *trans, goto err; bkey_reassemble(update, k); ret = bch2_trans_update_extent(trans, iter, update, 0); - if (!ret) + if (ret) goto err; } } |