diff options
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index fd66c395894..39b917bc0fc 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -898,7 +898,7 @@ static int super_1_load(mdk_rdev_t *rdev, mdk_rdev_t *refdev, int minor_version) | |||
898 | rdev->data_offset = le64_to_cpu(sb->data_offset); | 898 | rdev->data_offset = le64_to_cpu(sb->data_offset); |
899 | 899 | ||
900 | rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256; | 900 | rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256; |
901 | bmask = block_size(rdev->bdev)-1; | 901 | bmask = queue_hardsect_size(rdev->bdev->bd_disk->queue)-1; |
902 | if (rdev->sb_size & bmask) | 902 | if (rdev->sb_size & bmask) |
903 | rdev-> sb_size = (rdev->sb_size | bmask)+1; | 903 | rdev-> sb_size = (rdev->sb_size | bmask)+1; |
904 | 904 | ||