dm raid: use mddev rather than rdev->mddev
authorHeinz Mauelshagen <heinzm@redhat.com>
Sat, 14 Jan 2017 02:53:11 +0000 (03:53 +0100)
committerMike Snitzer <snitzer@redhat.com>
Wed, 25 Jan 2017 11:49:07 +0000 (12:49 +0100)
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c

index c982649497a5fc8327bf618ae35195b3b628a94d..34442c66bbf19858e38fd1882805a9be960444a9 100644 (file)
@@ -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 */