summaryrefslogtreecommitdiff
path: root/drivers/md/dm-table.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-06-19 17:45:37 +0200
committerJens Axboe <axboe@kernel.dk>2024-06-20 06:53:14 -0600
commit4cac3d3a712b5c76d462b29b73b9e58c0b6d9946 (patch)
tree5d4dde73d90bf6c3f70d5d0d9cb0ba02db134d73 /drivers/md/dm-table.c
parent5543217be468268dfedf504f4969771b9a377353 (diff)
downloadlwn-4cac3d3a712b5c76d462b29b73b9e58c0b6d9946.tar.gz
lwn-4cac3d3a712b5c76d462b29b73b9e58c0b6d9946.zip
block: remove the discard_alignment flag
queue_limits.discard_alignment is never read except in the places where it is stacked into another limit. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20240619154623.450048-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r--drivers/md/dm-table.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index df6313c3fe6b..502ebc78d490 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -1808,7 +1808,6 @@ int dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
limits->max_hw_discard_sectors = 0;
limits->discard_granularity = 0;
limits->discard_alignment = 0;
- limits->discard_misaligned = 0;
}
if (!dm_table_supports_write_zeroes(t))