Re: [PATCH v9 1/6] filemap: check compound_head(page)->mapping in filemap_fault()

From: Johannes Weiner
Date: Wed Jul 10 2019 - 13:44:25 EST


On Mon, Jun 24, 2019 at 05:12:41PM -0700, Song Liu wrote:
> Currently, filemap_fault() avoids trace condition with truncate by

-t

> checking page->mapping == mapping. This does not work for compound
> pages. This patch let it check compound_head(page)->mapping instead.
>
> Acked-by: Rik van Riel <riel@xxxxxxxxxxx>
> Signed-off-by: Song Liu <songliubraving@xxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>