]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: factor out a nvme_ns_is_readonly helper
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Jul 2022 05:40:25 +0000 (07:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:53 +0000 (17:22 -0600)
commit1e4ea66af1db4fde5988b6ed43341872a17e390d
tree9930e86138eba0bc3a471a0ab166a58f71f23f33
parent1a893c2bfef46ac447eead8ea7afe417942be237
nvme: factor out a nvme_ns_is_readonly helper

Add a little helper to check if a namespace should be marked read-only
that uses a new is_readonly flag in the nvme_ns_info structure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Javier González <javier.gonz@samsung.com>
Reviewed-by: Joel Granados <j.granados@samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c