aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2016-06-15 22:29:09 +0200
committerMike Snitzer <snitzer@redhat.com>2016-07-18 15:37:21 -0400
commit6ee0bae9c847086b7025494e84a2fff0dfc83bdc (patch)
treecc923d9dca601ca97889f10e4cd7b912d30ce80c /drivers
parentdm raid: remove bogus comment and fix comment typos (diff)
downloadlinux-dev-6ee0bae9c847086b7025494e84a2fff0dfc83bdc.tar.xz
linux-dev-6ee0bae9c847086b7025494e84a2fff0dfc83bdc.zip
dm raid: enhance comments in takeover checks
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/dm-raid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 864e903cddda..cc6eb7c27a7d 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -1610,7 +1610,7 @@ static int rs_check_takeover(struct raid_set *rs)
mddev->raid_disks == 2)
return 0;
- /* raid5 with parity N -> raid6 with parity N */
+ /* raid5_* -> raid6_*_6 with Q-Syndrome N (e.g. raid5_ra -> raid6_ra_6 */
if (mddev->new_level == 6 &&
((mddev->layout == ALGORITHM_PARITY_N && mddev->new_layout == ALGORITHM_PARITY_N) ||
__within_range(mddev->new_layout, ALGORITHM_LEFT_ASYMMETRIC_6, ALGORITHM_RIGHT_SYMMETRIC_6)))
@@ -1628,7 +1628,7 @@ static int rs_check_takeover(struct raid_set *rs)
mddev->layout == ALGORITHM_PARITY_N)
return 0;
- /* raid6_*_n with parity N -> raid5_* */
+ /* raid6_*_n with Q-Syndrome N -> raid5_* */
if (mddev->new_level == 5 &&
((mddev->layout == ALGORITHM_PARITY_N && mddev->new_layout == ALGORITHM_PARITY_N) ||
__within_range(mddev->new_layout, ALGORITHM_LEFT_ASYMMETRIC, ALGORITHM_RIGHT_SYMMETRIC)))