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

Message ID f3a491939f803f9a391619aad209b6e1c000bbd8.1433936721.git.zhaolei@cn.fujitsu.com
State New
Headers show

Commit Message

Zhaolei June 10, 2015, 11:45 a.m. UTC
From: Zhao Lei <zhaolei@cn.fujitsu.com>

Because btrfs support scrub raid56 parity stripe now.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
---
 fs/btrfs/scrub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index a13f91a..5ee5630 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -3202,12 +3202,12 @@  static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,
 	 */
 	ret = 0;
 	while (physical < physical_end) {
-		/* 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 - 1;
 				ret = scrub_raid56_parity(sctx, map, scrub_dev,