aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-02-13 08:34:23 +0100
committerJens Axboe <axboe@kernel.dk>2024-02-13 08:56:59 -0700
commit65bdd16f8c72bb2178f5e4db40305bef6c96b309 (patch)
tree03628faa54366ec25d2207eeb42037dde197de5f /include/linux/blkdev.h
parentvirtio_blk: pass queue_limits to blk_mq_alloc_disk (diff)
downloadwireguard-linux-65bdd16f8c72bb2178f5e4db40305bef6c96b309.tar.xz
wireguard-linux-65bdd16f8c72bb2178f5e4db40305bef6c96b309.zip
loop: cleanup loop_config_discard
Initialize the local variables for the discard max sectors and granularity to zero as a sensible default, and then merge the calls assigning them to the queue limits. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20240213073425.1621680-14-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions