mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
dm raid: use mddev rather than rdev->mddev
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
1 parent
e2568465bd
commit
977f1a0a3f
1 file changed
+1
-1
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user