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
...@@ -889,10 +889,6 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all) ...@@ -889,10 +889,6 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all)
re->logical, fs_info->tree_root->nodesize, re->logical, fs_info->tree_root->nodesize,
list_empty(&re->extctl), list_empty(&re->extctl),
re->scheduled_for ? re->scheduled_for->devid : -1); re->scheduled_for ? re->scheduled_for->devid : -1);
for (i = 0; i < re->nzones; ++i) {
printk(KERN_CONT " zone %llu-%llu devs",
re->zones[i]->start,
re->zones[i]->end);
for (i = 0; i < re->nzones; ++i) { for (i = 0; i < re->nzones; ++i) {
printk(KERN_CONT " zone %llu-%llu devs", printk(KERN_CONT " zone %llu-%llu devs",
re->zones[i]->start, re->zones[i]->start,
...@@ -902,7 +898,6 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all) ...@@ -902,7 +898,6 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all)
re->zones[i]->devs[j]->devid); re->zones[i]->devs[j]->devid);
} }
} }
}
printk(KERN_CONT "\n"); printk(KERN_CONT "\n");
index = (re->logical >> PAGE_CACHE_SHIFT) + 1; index = (re->logical >> PAGE_CACHE_SHIFT) + 1;
} }
......
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