From 9fee8763451f1e0b09e591cda05613a46a4a2a3b Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Thu, 12 Oct 2023 22:07:39 +0900 Subject: [PATCH] nvme: Change to use NVME_FLBAS_META_EXT() macro to check flbas value Signed-off-by: Tokunori Ikegami --- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme.c b/nvme.c index 73d74afdfd..a3fa4d0f82 100644 --- a/nvme.c +++ b/nvme.c @@ -7301,7 +7301,7 @@ static int submit_io(int opcode, char *command, const char *desc, int argc, char nvme_id_ns_flbas_to_lbaf_inuse(ns->flbas, &lba_index); ms = ns->lbaf[lba_index].ms; - if (ns->flbas & NVME_NS_FLBAS_META_EXT) { + if (NVME_FLBAS_META_EXT(ns->flbas)) { /* * No meta data is transfered for PRACT=1 and MD=8: * 5.2.2.1 Protection Information and Write Commands