summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-04-18 07:53:11 +0300
committerJens Axboe <axboe@kernel.dk>2022-05-03 19:38:50 +0300
commit4418bfd8fb9602d9cd8747c3ad52fdbaa02e2ffd (patch)
tree3d14f9baee9df8a70c8134efc7c23231d31dfd96 /drivers/block
parentc3f765299632727fa5ea5a0acf118665227a4f1a (diff)
downloadlinux-4418bfd8fb9602d9cd8747c3ad52fdbaa02e2ffd.tar.xz
loop: remove a spurious clear of discard_alignment
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/loop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 0c7f0367200c..322d92f958ea 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -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 {