Unverified Commit 6ae58121 authored by Pankaj Raghav's avatar Pankaj Raghav Committed by Christian Brauner
Browse files

fs/buffer: remove comment about hard sectorsize



Commit e1defc4f ("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: default avatar"Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: default avatarPankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/20250618075821.111459-1-p.raghav@samsung.com


Reviewed-by: default avatarDaniel Gomez <da.gomez@samsung.com>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent ffaf1bf3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1122,7 +1122,6 @@ __getblk_slow(struct block_device *bdev, sector_t block,
{
	bool blocking = gfpflags_allow_blocking(gfp);

	/* Size must be multiple of hard sectorsize */
	if (unlikely(size & (bdev_logical_block_size(bdev) - 1) ||
		     (size < 512 || size > PAGE_SIZE))) {
		printk(KERN_ERR "getblk(): invalid block size %d requested\n",