block: Do away with the notion of hardsect_size
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 22 May 2009 21:17:49 +0000 (17:17 -0400)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 22 May 2009 21:22:54 +0000 (23:22 +0200)
commite1defc4ff0cf57aca6c5e3ff99fa503f5943c1f1
treed60d15a082171c58ac811d547d51a9c3119f23e3
parent9bd7de51ee8537094656149eaf45338cadb7d7d4
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>
54 files changed:
arch/powerpc/sysdev/axonram.c
block/blk-integrity.c
block/blk-settings.c
block/blk-sysfs.c
block/compat_ioctl.c
block/ioctl.c
drivers/block/cciss.c
drivers/block/cpqarray.c
drivers/block/hd.c
drivers/block/mg_disk.c
drivers/block/pktcdvd.c
drivers/block/ps3disk.c
drivers/block/ub.c
drivers/block/virtio_blk.c
drivers/block/xen-blkfront.c
drivers/block/xsysace.c
drivers/cdrom/gdrom.c
drivers/cdrom/viocd.c
drivers/char/raw.c
drivers/ide/ide-cd.c
drivers/md/bitmap.c
drivers/md/dm-exception-store.c
drivers/md/dm-log.c
drivers/md/dm-snap-persistent.c
drivers/md/dm-table.c
drivers/md/md.c
drivers/memstick/core/mspro_block.c
drivers/message/i2o/i2o_block.c
drivers/mmc/card/block.c
drivers/mtd/mtd_blkdevs.c
drivers/s390/block/dasd.c
drivers/s390/block/dcssblk.c
drivers/s390/block/xpram.c
drivers/s390/char/tape_block.c
drivers/scsi/sd.c
drivers/scsi/sr.c
fs/bio.c
fs/block_dev.c
fs/buffer.c
fs/direct-io.c
fs/ext3/super.c
fs/ext4/super.c
fs/gfs2/ops_fstype.c
fs/gfs2/rgrp.c
fs/nilfs2/the_nilfs.c
fs/ntfs/super.c
fs/ocfs2/cluster/heartbeat.c
fs/ocfs2/super.c
fs/partitions/ibm.c
fs/partitions/msdos.c
fs/udf/super.c
fs/xfs/linux-2.6/xfs_buf.c
include/linux/blkdev.h
include/linux/device-mapper.h