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:
Wang Shilong 2014-03-18 20:02:47 +08:00 committed by David Sterba
parent 8bae5a1525
commit 1d2b8a3f0b

View File

@ -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;
}