]> 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)
commit03fb879f8ff8c8f8d8958fad7f07e3328bb74af2
tree9930e86138eba0bc3a471a0ab166a58f71f23f33
parent2f3be286d258cf94d297a8d7bea4b24d774740cb
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