You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
block: Do away with the notion of hardsect_size
Until now we have had a 1:1 mapping between storage device physical block size and the logical block sized used when addressing the device. With SATA 4KB drives coming out that will no longer be the case. The sector size will be 4KB but the logical block size will remain 512-bytes. Hence we need to distinguish between the physical block size and the logical ditto. This patch renames hardsect_size to logical_block_size. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
committed by
Jens Axboe
parent
9bd7de51ee
commit
e1defc4ff0
@@ -474,7 +474,7 @@ static int __init cpqarray_register_ctlr( int i, struct pci_dev *pdev)
|
||||
disk->fops = &ida_fops;
|
||||
if (j && !drv->nr_blks)
|
||||
continue;
|
||||
blk_queue_hardsect_size(hba[i]->queue, drv->blk_size);
|
||||
blk_queue_logical_block_size(hba[i]->queue, drv->blk_size);
|
||||
set_capacity(disk, drv->nr_blks);
|
||||
disk->queue = hba[i]->queue;
|
||||
disk->private_data = drv;
|
||||
@@ -1546,7 +1546,7 @@ static int revalidate_allvol(ctlr_info_t *host)
|
||||
drv_info_t *drv = &host->drv[i];
|
||||
if (i && !drv->nr_blks)
|
||||
continue;
|
||||
blk_queue_hardsect_size(host->queue, drv->blk_size);
|
||||
blk_queue_logical_block_size(host->queue, drv->blk_size);
|
||||
set_capacity(disk, drv->nr_blks);
|
||||
disk->queue = host->queue;
|
||||
disk->private_data = drv;
|
||||
|
||||
Reference in New Issue
Block a user