Re: [PATCH v9 2/6] filemap: update offset check in filemap_fault()

From: Johannes Weiner
Date: Wed Jul 10 2019 - 13:52:50 EST


On Mon, Jun 24, 2019 at 05:12:42PM -0700, Song Liu wrote:
> With THP, current check of offset:
>
> VM_BUG_ON_PAGE(page->index != offset, page);
>
> is no longer accurate. Update it to:
>
> VM_BUG_ON_PAGE(page_to_pgoff(page) != offset, page);
>
> Acked-by: Rik van Riel <riel@xxxxxxxxxxx>
> Signed-off-by: Song Liu <songliubraving@xxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>