Action disabled: source

[PATCH] md: use queue_hardsect_size instead of block_size for md superblock size calc.

This change “[PATCH] md: use queue_hardsect_size instead of block_size for md superblock size calc.” (commit 720a3dc) in Linux kernel is authored by NeilBrown <neilb [at] suse.de> on Fri Sep 9 16:23:59 2005 -0700.

Description of "[PATCH] md: use queue_hardsect_size instead of block_size for md superblock size calc."

The change “[PATCH] md: use queue_hardsect_size instead of block_size for md superblock size calc.” introduces changes as follows.

[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>

Linux kernel releases containing commit 720a3dc

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "[PATCH] md: use queue_hardsect_size instead of block_size for md superblock size calc."

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
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)
 	rdev->data_offset = le64_to_cpu(sb->data_offset);
 
 	rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256;
-	bmask = block_size(rdev->bdev)-1;
+	bmask = queue_hardsect_size(rdev->bdev->bd_disk->queue)-1;
 	if (rdev->sb_size & bmask)
 		rdev-> sb_size = (rdev->sb_size | bmask)+1;
 

The commit for this change in Linux stable tree is 720a3dc (patch).

Last modified: 2020/02/11