diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-17 01:16:45 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-17 23:29:53 +0200 |
commit | fa845c73497f5e9d2f6f1cf48c3aad05c2fdacb8 (patch) | |
tree | 14973fadcb85d2f92813a1864b72787cde2fc000 /fs/bcachefs/sb-members.c | |
parent | bcachefs: make sure to release last journal pin in replay (diff) | |
download | linux-fa845c73497f5e9d2f6f1cf48c3aad05c2fdacb8.tar.xz linux-fa845c73497f5e9d2f6f1cf48c3aad05c2fdacb8.zip |
bcachefs: Fix bch2_dev_btree_bitmap_marked_sectors() shift
Fixes: 27c15ed297cb bcachefs: bch_member.btree_allocated_bitmap
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-members.c')
-rw-r--r-- | fs/bcachefs/sb-members.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/sb-members.c b/fs/bcachefs/sb-members.c index 522a969345e5..5b8e621ac5eb 100644 --- a/fs/bcachefs/sb-members.c +++ b/fs/bcachefs/sb-members.c @@ -463,8 +463,8 @@ static void __bch2_dev_btree_bitmap_mark(struct bch_sb_field_members_v2 *mi, uns m->btree_bitmap_shift += resize; } - for (unsigned bit = sectors >> m->btree_bitmap_shift; - bit << m->btree_bitmap_shift < end; + for (unsigned bit = start >> m->btree_bitmap_shift; + (u64) bit << m->btree_bitmap_shift < end; bit++) bitmap |= BIT_ULL(bit); |