mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
bcachefs: Fix next_bucket()
This fixes an infinite loop in bch2_get_key_or_real_bucket_hole(). Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
fba053d2aa
commit
46e14854fc
|
|
@ -1006,7 +1006,7 @@ static bool next_bucket(struct bch_fs *c, struct bpos *bucket)
|
||||||
iter = bucket->inode;
|
iter = bucket->inode;
|
||||||
ca = __bch2_next_dev(c, &iter, NULL);
|
ca = __bch2_next_dev(c, &iter, NULL);
|
||||||
if (ca)
|
if (ca)
|
||||||
bucket->offset = ca->mi.first_bucket;
|
*bucket = POS(ca->dev_idx, ca->mi.first_bucket);
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
|
|
||||||
return ca != NULL;
|
return ca != NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user