btrfs: Update out-of-date "skip parity stripe" comment
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 18 Aug 2015 09:54:30 +0000 (17:54 +0800)
committerChris Mason <clm@fb.com>
Mon, 31 Aug 2015 18:45:45 +0000 (11:45 -0700)
Because btrfs support scrub raid56 parity stripe now.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c

index c69c75e7b841e167b83c3992b42ef207d0f10bc5..6f913604799d9a83c6cfe5b33deb527143e0cf3f 100644 (file)
@@ -3280,13 +3280,13 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,
                        scrub_blocked_if_needed(fs_info);
                }
 
-               /* for raid56, we skip parity stripe */
                if (map->type & BTRFS_BLOCK_GROUP_RAID56_MASK) {
                        ret = get_raid56_logic_offset(physical, num, map,
                                                      &logical,
                                                      &stripe_logical);
                        logical += base;
                        if (ret) {
+                               /* it is parity strip */
                                stripe_logical += base;
                                stripe_end = stripe_logical + increment;
                                ret = scrub_raid56_parity(sctx, map, scrub_dev,