diff options
author | 2024-02-13 08:34:23 +0100 | |
---|---|---|
committer | 2024-02-13 08:56:59 -0700 | |
commit | 65bdd16f8c72bb2178f5e4db40305bef6c96b309 (patch) | |
tree | 03628faa54366ec25d2207eeb42037dde197de5f /include/linux/blkdev.h | |
parent | virtio_blk: pass queue_limits to blk_mq_alloc_disk (diff) | |
download | wireguard-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