Re: [PATCH 1/5] dm integrity: simplify by using PAGE_SECTORS_SHIFT

Matthew Wilcox
2023-04-21T20:15:28Z

On Fri, Apr 21, 2023 at 12:58:03PM -0700, Luis Chamberlain wrote:
> - *pl_index = sector >> (PAGE_SHIFT - SECTOR_SHIFT);
> + *pl_index = sector >> (PAGE_SECTORS_SHIFT);

You could/should remove the () around PAGE_SECTORS_SHIFT

(throughout)