Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvme: remove a spurious clear of discard_alignment

The nvme 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: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220418045314.360785-10-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
4e7f0ece 4418bfd8

-1
-1
drivers/nvme/host/core.c
··· 1628 1628 BUILD_BUG_ON(PAGE_SIZE / sizeof(struct nvme_dsm_range) < 1629 1629 NVME_DSM_MAX_RANGES); 1630 1630 1631 - queue->limits.discard_alignment = 0; 1632 1631 queue->limits.discard_granularity = size; 1633 1632 1634 1633 /* If discard is already enabled, don't reset queue limits */