Re: [PATCH] memcg: set page->private before calling swap_readpage
From: Johannes Weiner <hidden>
Date: 2021-03-18 15:03:57
Also in:
linux-mm, lkml
From: Johannes Weiner <hidden>
Date: 2021-03-18 15:03:57
Also in:
linux-mm, lkml
On Wed, Mar 17, 2021 at 06:59:59PM -0700, Shakeel Butt wrote:
The function swap_readpage() (and other functions it call) extracts swap entry from page->private. However for SWP_SYNCHRONOUS_IO, the kernel skips the swapcache and thus we need to manually set the page->private with the swap entry before calling swap_readpage(). Signed-off-by: Shakeel Butt <redacted> Reported-by: Heiko Carstens <redacted>
LGTM