Re: [RFC PATCH v2 1/3] mm: add functions folio_in_range() and folio_within_vma()

From: Yu Zhao
Date: Wed Jul 12 2023 - 02:12:00 EST


On Wed, Jul 12, 2023 at 12:01 AM Yin Fengwei <fengwei.yin@xxxxxxxxx> wrote:
>
> It will be used to check whether the folio is mapped to specific
> VMA and whether the mapping address of folio is in the range.
>
> Also a helper function folio_within_vma() to check whether folio
> is in the range of vma based on folio_in_range().
>
> Signed-off-by: Yin Fengwei <fengwei.yin@xxxxxxxxx>

Reviewed-by: Yu Zhao <yuzhao@xxxxxxxxxx>