diff options
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | 2014-03-18 20:02:47 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-04-11 19:05:40 +0200 |
commit | 1d2b8a3f0b279acd94f892486dca4157da537b6c (patch) | |
tree | 5965fab063d56b2155d10e1b812a34cf67f5cb2d | |
parent | 8bae5a152538adb41ff63f1c7882666bcd0ced19 (diff) |
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>
-rw-r--r-- | cmds-check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-check.c b/cmds-check.c index 39a08694..288906fc 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -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; } |