From 5d440b26028fb4795964cfba9d5391bdbcb1dfff Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Wed, 13 Sep 2023 21:23:33 +0900 Subject: [PATCH] nvme: Change to use NVME_NS_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 89161317cc..2b13ae767e 100644 --- a/nvme.c +++ b/nvme.c @@ -7558,7 +7558,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_NS_FLBAS_META_EXT(ns.flbas)) logical_block_size += ms; buffer_size = ((long long)cfg.block_count + 1) * logical_block_size;