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

2018-12-04 Thread Andrew Morton
On Fri, 30 Nov 2018 14:58:09 -0500 Josef Bacik 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

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

2018-12-04 Thread Andrew Morton
On Fri, 30 Nov 2018 14:58:09 -0500 Josef Bacik 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

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

2018-11-30 Thread Josef Bacik
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, 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

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

2018-11-30 Thread Josef Bacik
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, 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