Commit 8afd6841 authored by Zhao Lei's avatar Zhao Lei Committed by David Sterba

btrfs: reada: Fix a debug code typo

Remove one copy of loop to fix the typo of iterate zones.
Signed-off-by: default avatarZhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 57f16e08
...@@ -893,14 +893,9 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all) ...@@ -893,14 +893,9 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all)
printk(KERN_CONT " zone %llu-%llu devs", printk(KERN_CONT " zone %llu-%llu devs",
re->zones[i]->start, re->zones[i]->start,
re->zones[i]->end); re->zones[i]->end);
for (i = 0; i < re->nzones; ++i) { for (j = 0; j < re->zones[i]->ndevs; ++j) {
printk(KERN_CONT " zone %llu-%llu devs", printk(KERN_CONT " %lld",
re->zones[i]->start, re->zones[i]->devs[j]->devid);
re->zones[i]->end);
for (j = 0; j < re->zones[i]->ndevs; ++j) {
printk(KERN_CONT " %lld",
re->zones[i]->devs[j]->devid);
}
} }
} }
printk(KERN_CONT "\n"); printk(KERN_CONT "\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment