Re: [PATCH 1/4] mm: infrastructure for page fault page caching

From: Andrew Morton
Date: Tue Dec 04 2018 - 17:49:48 EST


On Fri, 30 Nov 2018 14:58:09 -0500 Josef Bacik <josef@xxxxxxxxxxxxxx> wrote:

> We want to be able to cache the result of a previous loop of a page
> fault in the case that we use VM_FAULT_RETRY,

Please explain here why we want to do that.

> so introduce
> handle_mm_fault_cacheable that will take a struct vm_fault directly, add
> a ->cached_page field to vm_fault, and add helpers to init/cleanup the
> struct vm_fault.
>
> I've converted x86, other arch's can follow suit if they so wish, it's
> relatively straightforward.
>