Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs/buffer: remove comment about hard sectorsize

Commit e1defc4ff0cf ("block: Do away with the notion of hardsect_size")
changed hardsect_size to logical block size. The comment on top still
says hardsect_size.

Remove the comment as the code is pretty clear. While we are at it,
format the relevant code.

Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/20250618075821.111459-1-p.raghav@samsung.com
Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Pankaj Raghav and committed by
Christian Brauner
6ae58121 ffaf1bf3

+2 -3
+2 -3
fs/buffer.c
··· 1122 1122 { 1123 1123 bool blocking = gfpflags_allow_blocking(gfp); 1124 1124 1125 - /* Size must be multiple of hard sectorsize */ 1126 - if (unlikely(size & (bdev_logical_block_size(bdev)-1) || 1127 - (size < 512 || size > PAGE_SIZE))) { 1125 + if (unlikely(size & (bdev_logical_block_size(bdev) - 1) || 1126 + (size < 512 || size > PAGE_SIZE))) { 1128 1127 printk(KERN_ERR "getblk(): invalid block size %d requested\n", 1129 1128 size); 1130 1129 printk(KERN_ERR "logical block size: %d\n",