nvme: refactor the atomic write unit detection
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Jun 2025 05:09:21 +0000 (07:09 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 26 Jun 2025 11:04:37 +0000 (13:04 +0200)
commitb2e607fecac15e07f50269c080e2e71b5049dfa2
tree10e56eb8a8ad1addea69e8fbe7000a6e864e4342
parentdd2c18548964ae7ad48d208a765d909cd35448a1
nvme: refactor the atomic write unit detection

Move all the code out of nvme_update_disk_info into the helper, and
rename the helper to have a somewhat less clumsy name.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
drivers/nvme/host/core.c