Skip to content

Commit

Permalink
nvme: Change to use NVME_FLBAS_META_EXT() macro to check flbas value
Browse files Browse the repository at this point in the history
Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Sep 20, 2023
1 parent 70c99f9 commit 111040f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_FLBAS_META_EXT(ns.flbas))
logical_block_size += ms;

buffer_size = ((long long)cfg.block_count + 1) * logical_block_size;
Expand Down

0 comments on commit 111040f

Please sign in to comment.