diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-27 08:11:12 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-09-06 09:59:03 +0200 |
commit | ab7a2737ac5acd7d485ca45d8772497717fbc781 (patch) | |
tree | 0885bee4e8fedcdce6e32d6d3d66c853aa7d8bbd /drivers/nvme/target/configfs.c | |
parent | 77d651a65569a5e60f314b768500e94fcb936311 (diff) | |
download | linux-stable-ab7a2737ac5acd7d485ca45d8772497717fbc781.tar.gz |
nvmet: return bool from nvmet_passthru_ctrl and nvmet_is_passthru_req
The target core code never needs the host-side nvme_ctrl structure.
Open code two uses of nvmet_is_passthru_req in passthru.c, and then
switch the helpers used by the core to return bool. Also rename the
fuctions to better match their usage:
nvmet_passthru_ctrl -> nvmet_is_passthru_subsys
nvmet_req_passthru_ctrl -> nvmet_is_passthru_req
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme/target/configfs.c')
-rw-r--r-- | drivers/nvme/target/configfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/configfs.c b/drivers/nvme/target/configfs.c index 273555127188..f74485c705ff 100644 --- a/drivers/nvme/target/configfs.c +++ b/drivers/nvme/target/configfs.c @@ -1028,7 +1028,7 @@ nvmet_subsys_attr_version_store_locked(struct nvmet_subsys *subsys, } /* passthru subsystems use the underlying controller's version */ - if (nvmet_passthru_ctrl(subsys)) + if (nvmet_is_passthru_subsys(subsys)) return -EINVAL; ret = sscanf(page, "%d.%d.%d\n", &major, &minor, &tertiary); |