diff mbox

[6/6] Btrfs-progs: fsck: fix wrong index in pick_next_pending()

Message ID 1395144167-775-6-git-send-email-wangsl.fnst@cn.fujitsu.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Wang Shilong March 18, 2014, 12:02 p.m. UTC
Though all tree blocks have same size, we'd better use right
index here.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
---
 cmds-check.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/cmds-check.c b/cmds-check.c
index 34f8fa6..ebdb643 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -2928,7 +2928,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;
 	}