Re: [PATCH 1/5] dm integrity: simplify by using PAGE_SECTORS_SHIFT
From: Matthew Wilcox
Date: Fri Apr 21 2023 - 16:15:28 EST
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)