diff options
author | Adam Manzanares <a.manzanares@samsung.com> | 2021-08-26 21:15:45 +0000 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-09-06 09:59:02 +0200 |
commit | 43dc987828eabf915858b1ac37a8e67fa8004349 (patch) | |
tree | b047597935a6fbf4d7356b13f0db75f0f605c188 /drivers/nvme/host/core.c | |
parent | nvme-multipath: revalidate paths during rescan (diff) | |
download | linux-dev-43dc987828eabf915858b1ac37a8e67fa8004349.tar.xz linux-dev-43dc987828eabf915858b1ac37a8e67fa8004349.zip |
nvme: move nvme_multi_css into nvme.h
Preparatory patch in order to reuse nvme_multi_css in the nvme target
code.
Signed-off-by: Adam Manzanares <a.manzanares@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/core.c')
-rw-r--r-- | drivers/nvme/host/core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index f5502ee45b96..4be4845638e6 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1302,11 +1302,6 @@ static int nvme_identify_ctrl(struct nvme_ctrl *dev, struct nvme_id_ctrl **id) return error; } -static bool nvme_multi_css(struct nvme_ctrl *ctrl) -{ - return (ctrl->ctrl_config & NVME_CC_CSS_MASK) == NVME_CC_CSS_CSI; -} - static int nvme_process_ns_desc(struct nvme_ctrl *ctrl, struct nvme_ns_ids *ids, struct nvme_ns_id_desc *cur, bool *csi_seen) { |