mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
nvme: define the remaining used sgls constants
This provides a little more context when reading the code than hardcoded magic numbers. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
@@ -1123,7 +1123,8 @@ static inline void nvme_start_request(struct request *rq)
|
||||
|
||||
static inline bool nvme_ctrl_sgl_supported(struct nvme_ctrl *ctrl)
|
||||
{
|
||||
return ctrl->sgls & ((1 << 0) | (1 << 1));
|
||||
return ctrl->sgls & (NVME_CTRL_SGLS_BYTE_ALIGNED |
|
||||
NVME_CTRL_SGLS_DWORD_ALIGNED);
|
||||
}
|
||||
|
||||
static inline bool nvme_ctrl_meta_sgl_supported(struct nvme_ctrl *ctrl)
|
||||
|
||||
Reference in New Issue
Block a user