Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -889,10 +889,6 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all)
			re->logical, fs_info->tree_root->nodesize,
			list_empty(&re->extctl),
			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) {
			printk(KERN_CONT " zone %llu-%llu devs",
				re->zones[i]->start,
@@ -902,7 +898,6 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all)
				       re->zones[i]->devs[j]->devid);
			}
		}
		}
		printk(KERN_CONT "\n");
		index = (re->logical >> PAGE_CACHE_SHIFT) + 1;
	}