lkml.org 
[lkml]   [2022]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCHv2 6/7] block: add pi for nvme enhanced integrity
From
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.

\
 
 \ /
  Last update: 2022-02-02 19:41    [W:0.125 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site