]> www.infradead.org Git - users/dwmw2/linux.git/commit
nvme: move NVME_QUIRK_DEALLOCATE_ZEROES out of nvme_config_discard
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Mar 2024 14:04:46 +0000 (07:04 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 4 Mar 2024 16:24:55 +0000 (08:24 -0800)
commit63dfa1004322d596417f23da43cdc43cf6298c71
tree0e1fc0cf82289c12c56eb1a3b810d0bdeca52210
parent152694c82950a0930533dbe972b1f4fc11b95e98
nvme: move NVME_QUIRK_DEALLOCATE_ZEROES out of nvme_config_discard

Move the handling of the NVME_QUIRK_DEALLOCATE_ZEROES quirk out of
nvme_config_discard so that it is combined with the normal write_zeroes
limit handling.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c