scsi: block: Add a queue_max_bytes() helper
authorChristoph Hellwig <hch@lst.de>
Sat, 24 Jul 2021 07:20:21 +0000 (09:20 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Jul 2021 02:24:25 +0000 (22:24 -0400)
commit547e2f7093b19a993d76c249b4c3ec8af8127d09
treeea1d8388ce3da300fba114a07763d2c8779cb87b
parent2e27f576abc6f056e63ef207b9911b1a04d07020
scsi: block: Add a queue_max_bytes() helper

Return the max_sectors value in bytes.  Lifted from scsi_ioctl.c.

Link: https://lore.kernel.org/r/20210724072033.1284840-13-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
block/scsi_ioctl.c
include/linux/blkdev.h