Skip to content

Commit a441b0d

Browse files
Linus Walleijaxboe
authored andcommitted
block: remove remnant refs to hardsect
commit e1defc4 "block: Do away with the notion of hardsect_size" removed the notion of "hardware sector size" from the kernel in favor of logical block size, but references remain in comments and documentation. Update the remaining sites mentioning hardsect. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent abe4711 commit a441b0d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Documentation/block/biodoc.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ i. Per-queue limits/values exported to the generic layer by the driver
115115

116116
Various parameters that the generic i/o scheduler logic uses are set at
117117
a per-queue level (e.g maximum request size, maximum number of segments in
118-
a scatter-gather list, hardsect size)
118+
a scatter-gather list, logical block size)
119119

120120
Some parameters that were earlier available as global arrays indexed by
121121
major/minor are now directly associated with the queue. Some of these may
@@ -156,7 +156,7 @@ Some new queue property settings:
156156
blk_queue_max_segment_size(q, max_seg_size)
157157
Maximum size of a clustered segment, 64kB default.
158158

159-
blk_queue_hardsect_size(q, hardsect_size)
159+
blk_queue_logical_block_size(q, logical_block_size)
160160
Lowest possible sector size that the hardware can operate
161161
on, 512 bytes default.
162162

‎block/bio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ struct bio *bio_map_user_iov(struct request_queue *q,
12741274

12751275
nr_pages += end - start;
12761276
/*
1277-
* buffer must be aligned to at least hardsector size for now
1277+
* buffer must be aligned to at least logical block size for now
12781278
*/
12791279
if (uaddr & queue_dma_alignment(q))
12801280
return ERR_PTR(-EINVAL);

‎fs/befs/linuxvfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
789789
* Will be set to real fs blocksize later.
790790
*
791791
* Linux 2.4.10 and later refuse to read blocks smaller than
792-
* the hardsect size for the device. But we also need to read at
792+
* the logical block size for the device. But we also need to read at
793793
* least 1k to get the second 512 bytes of the volume.
794794
* -WD 10-26-01
795795
*/

0 commit comments

Comments
 (0)