diff options
author | NeilBrown <neilb@suse.de> | 2005-09-09 19:23:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 19:39:13 -0400 |
commit | 720a3dc39b030e273bc955641f2517874fd38fc5 (patch) | |
tree | 565ecf6b7bf498661f613410d00c004a1e1cb1c2 /drivers/md | |
parent | 53e87fbb5dc887766229eef3ba8bd8ab8853b066 (diff) |
[PATCH] md: use queue_hardsect_size instead of block_size for md superblock size calc.
Doh. I want the physical hard-sector-size, not the current block size...
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md')
-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 fd66c3958942..39b917bc0fc0 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 | ||