Re: [PATCHv2 6/7] block: add pi for nvme enhanced integrity

From: Bart Van Assche
Date: Wed Feb 02 2022 - 13:41:07 EST


On 2/1/22 11:01, Keith Busch wrote:
+ ref = get_unaligned_be48(pi->ref_tag);
+ seed = iter->seed & 0xffffffffffffull;

The "& 0xffffffffffffull" operation occurs three times in this patch. Has it been considered to introduce a lower_48_bits() function?

Thanks,

Bart.