Re: [PATCH 15/20] mm: Move part of wp_page_reuse() into the single call site

2016-10-18 Thread Ross Zwisler
On Tue, Sep 27, 2016 at 06:08:19PM +0200, Jan Kara wrote: > wp_page_reuse() handles write shared faults which is needed only in > wp_page_shared(). Move the handling only into that location to make > wp_page_reuse() simpler and avoid a strange situation when we sometimes > pass in locked page, some

[PATCH 15/20] mm: Move part of wp_page_reuse() into the single call site

2016-09-27 Thread Jan Kara
wp_page_reuse() handles write shared faults which is needed only in wp_page_shared(). Move the handling only into that location to make wp_page_reuse() simpler and avoid a strange situation when we sometimes pass in locked page, sometimes unlocked etc. Signed-off-by: Jan Kara --- mm/memory.c | 2