[Drbd-dev] [PATCH 1/5] dm integrity: simplify by using PAGE_SECTORS_SHIFT

Matthew Wilcox willy at infradead.org
Fri Apr 21 22:15:15 CEST 2023


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)


More information about the drbd-dev mailing list