loop: remove a spurious clear of discard_alignment
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 04:53:11 +0000 (06:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 May 2022 16:38:50 +0000 (10:38 -0600)
The loop driver never sets a discard_alignment, so it also doens't need
to clear it to zero.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220418045314.360785-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c

index 0c7f0367200cc95224143ef001c7cc7a21ac1437..322d92f958ea82f7ba319a4ba284b83699b47b98 100644 (file)
@@ -798,7 +798,6 @@ static void loop_config_discard(struct loop_device *lo)
                blk_queue_max_discard_sectors(q, 0);
                blk_queue_max_write_zeroes_sectors(q, 0);
        }
-       q->limits.discard_alignment = 0;
 }
 
 struct loop_worker {