Skip to content

Commit

Permalink
util: Fixed nvme_id_ns_flbas_to_lbaf_inuse()
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Chuang <[email protected]>
  • Loading branch information
benchuanggli authored and igaw committed Apr 2, 2024
1 parent 691f809 commit f671ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvme/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ static inline void nvme_feature_decode_namespace_write_protect(__u32 value,

static inline void nvme_id_ns_flbas_to_lbaf_inuse(__u8 flbas, __u8 *lbaf_inuse)
{
*lbaf_inuse = ((NVME_FLBAS_HIGHER(flbas) >> 1) |
*lbaf_inuse = ((NVME_FLBAS_HIGHER(flbas) << 4) |
NVME_FLBAS_LOWER(flbas));
}

Expand Down

0 comments on commit f671ff4

Please sign in to comment.