mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-31 18:01:34 +00:00
Btrfs-progs: fsck: fix wrong index in pick_next_pending()
Though all tree blocks have same size, we'd better use right index here. Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
8bae5a1525
commit
1d2b8a3f0b
@ -2920,7 +2920,7 @@ static int pick_next_pending(struct cache_tree *pending,
|
||||
cache = search_cache_extent(reada, 0);
|
||||
if (cache) {
|
||||
bits[0].start = cache->start;
|
||||
bits[1].size = cache->size;
|
||||
bits[0].size = cache->size;
|
||||
*reada_bits = 1;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user