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

Commit 7955323b authored by Zhao Lei's avatar Zhao Lei Committed by Chris Mason
Browse files

btrfs: Update out-of-date "skip parity stripe" comment



Because btrfs support scrub raid56 parity stripe now.

Signed-off-by: default avatarZhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 3a9508b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3280,13 +3280,13 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,
			scrub_blocked_if_needed(fs_info);
			scrub_blocked_if_needed(fs_info);
		}
		}


		/* for raid56, we skip parity stripe */
		if (map->type & BTRFS_BLOCK_GROUP_RAID56_MASK) {
		if (map->type & BTRFS_BLOCK_GROUP_RAID56_MASK) {
			ret = get_raid56_logic_offset(physical, num, map,
			ret = get_raid56_logic_offset(physical, num, map,
						      &logical,
						      &logical,
						      &stripe_logical);
						      &stripe_logical);
			logical += base;
			logical += base;
			if (ret) {
			if (ret) {
				/* it is parity strip */
				stripe_logical += base;
				stripe_logical += base;
				stripe_end = stripe_logical + increment;
				stripe_end = stripe_logical + increment;
				ret = scrub_raid56_parity(sctx, map, scrub_dev,
				ret = scrub_raid56_parity(sctx, map, scrub_dev,