Re: [PATCH 3/4] mm: clear_page_mlock in page_remove_rmap

2012-09-20 Thread Johannes Weiner
On Wed, Sep 19, 2012 at 02:52:53PM -0700, Hugh Dickins wrote: > On Wed, 19 Sep 2012, Johannes Weiner wrote: > > On Tue, Sep 18, 2012 at 08:55:21PM -0700, Hugh Dickins wrote: > > > --- 3.6-rc6.orig/mm/memory.c 2012-09-18 15:38:08.0 -0700 > > > +++ 3.6-rc6/mm/memory.c 2012-09-18 17:51:

Re: [PATCH 3/4] mm: clear_page_mlock in page_remove_rmap

2012-09-19 Thread Hugh Dickins
On Wed, 19 Sep 2012, Johannes Weiner wrote: > On Tue, Sep 18, 2012 at 08:55:21PM -0700, Hugh Dickins wrote: > > We had thought that pages could no longer get freed while still marked > > as mlocked; but Johannes Weiner posted this program to demonstrate that > > truncating an mlocked private file m

Re: [PATCH 3/4] mm: clear_page_mlock in page_remove_rmap

2012-09-19 Thread Johannes Weiner
On Tue, Sep 18, 2012 at 08:55:21PM -0700, Hugh Dickins wrote: > We had thought that pages could no longer get freed while still marked > as mlocked; but Johannes Weiner posted this program to demonstrate that > truncating an mlocked private file mapping containing COWed pages is > still mishandled:

[PATCH 3/4] mm: clear_page_mlock in page_remove_rmap

2012-09-18 Thread Hugh Dickins
We had thought that pages could no longer get freed while still marked as mlocked; but Johannes Weiner posted this program to demonstrate that truncating an mlocked private file mapping containing COWed pages is still mishandled: #include #include #include #include #include #include #include