btrfs: reada: Fix a debug code typo
authorZhao Lei <zhaolei@cn.fujitsu.com>
Thu, 31 Dec 2015 14:28:51 +0000 (22:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 18 Feb 2016 09:26:12 +0000 (10:26 +0100)
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>
fs/btrfs/reada.c

index 04d3e7c8ada07a22a6444b46443cf920f3ce9cab..5871306a5a3b89e626e69204b836d639c4f9c9c5 100644 (file)
@@ -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");