Re: [PATCH v4 17/23] block: add check when merging zone device pages

2021-12-21 Thread Christoph Hellwig
> +/* > + * Consecutive zone device pages should not be merged into the same sgl > + * or bvec segment with other types of pages or if they belong to different > + * pgmaps. Otherwise getting the pgmap of a given segment is not possible > + * without scanning the entire segment. This helper

[PATCH v4 17/23] block: add check when merging zone device pages

2021-11-17 Thread Logan Gunthorpe
Consecutive zone device pages should not be merged into the same sgl or bvec segment with other types of pages or if they belong to different pgmaps. Otherwise getting the pgmap of a given segment is not possible without scanning the entire segment. This helper returns true either if both pages