summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-12-31 15:28:51 +0100
committerDavid Sterba <dsterba@suse.com>2016-02-18 10:26:12 +0100
commit8afd6841e13f8bbdf543c576bc1b919d331003ea (patch)
tree07a4a14d0386e4dd89be245196c50d2d0aa72495
parentbtrfs: reada: Jump into cleanup in direct way for __readahead_hook() (diff)
downloadlinux-8afd6841e13f8bbdf543c576bc1b919d331003ea.tar.xz
linux-8afd6841e13f8bbdf543c576bc1b919d331003ea.zip
btrfs: reada: Fix a debug code typo
Remove one copy of loop to fix the typo of iterate zones. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/reada.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c
index 04d3e7c8ada0..5871306a5a3b 100644
--- a/fs/btrfs/reada.c
+++ b/fs/btrfs/reada.c
@@ -893,14 +893,9 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all)
printk(KERN_CONT " zone %llu-%llu devs",
re->zones[i]->start,
re->zones[i]->end);
- for (i = 0; i < re->nzones; ++i) {
- printk(KERN_CONT " zone %llu-%llu devs",
- re->zones[i]->start,
- re->zones[i]->end);
- for (j = 0; j < re->zones[i]->ndevs; ++j) {
- printk(KERN_CONT " %lld",
- re->zones[i]->devs[j]->devid);
- }
+ for (j = 0; j < re->zones[i]->ndevs; ++j) {
+ printk(KERN_CONT " %lld",
+ re->zones[i]->devs[j]->devid);
}
}
printk(KERN_CONT "\n");