mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -1006,7 +1006,7 @@ static bool next_bucket(struct bch_fs *c, struct bpos *bucket)
|
|||
iter = bucket->inode;
|
||||
ca = __bch2_next_dev(c, &iter, NULL);
|
||||
if (ca)
|
||||
bucket->offset = ca->mi.first_bucket;
|
||||
*bucket = POS(ca->dev_idx, ca->mi.first_bucket);
|
||||
rcu_read_unlock();
|
||||
|
||||
return ca != NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue