diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2017-01-14 03:53:11 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-01-25 12:49:07 +0100 |
commit | 977f1a0a3f8185136eb78a65b579def69862c635 (patch) | |
tree | 65fe13ade08b87ff9d6904b8482d72cf07ccc906 /drivers/md/dm-raid.c | |
parent | e2568465bd55b3ee619d9ebd02cc330feffaae04 (diff) | |
download | lwn-977f1a0a3f8185136eb78a65b579def69862c635.tar.gz lwn-977f1a0a3f8185136eb78a65b579def69862c635.zip |
dm raid: use mddev rather than rdev->mddev
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-raid.c')
-rw-r--r-- | drivers/md/dm-raid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index c982649497a5..34442c66bbf1 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -2370,7 +2370,7 @@ static int super_validate(struct raid_set *rs, struct md_rdev *rdev) /* Enable bitmap creation for RAID levels != 0 */ mddev->bitmap_info.offset = rt_is_raid0(rs->raid_type) ? 0 : to_sector(4096); - rdev->mddev->bitmap_info.default_offset = mddev->bitmap_info.offset; + mddev->bitmap_info.default_offset = mddev->bitmap_info.offset; if (!test_and_clear_bit(FirstUse, &rdev->flags)) { /* Retrieve device size stored in superblock to be prepared for shrink */ |