Re: [PATCHv5 02/28] rmap: add argument to charge compound page

2015-05-15 Thread Kirill A. Shutemov
On Thu, May 14, 2015 at 06:07:48PM +0200, Vlastimil Babka wrote: > On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > >We're going to allow mapping of individual 4k pages of THP compound > >page. It means we cannot rely on PageTransHuge() check to decide if > >map/unmap small page or THP. > > > >T

Re: [PATCHv5 02/28] rmap: add argument to charge compound page

2015-05-14 Thread Vlastimil Babka
On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: We're going to allow mapping of individual 4k pages of THP compound page. It means we cannot rely on PageTransHuge() check to decide if map/unmap small page or THP. The patch adds new argument to rmap functions to indicate whether we want to oper

Re: [PATCHv5 02/28] rmap: add argument to charge compound page

2015-04-30 Thread Kirill A. Shutemov
On Wed, Apr 29, 2015 at 05:53:04PM +0200, Jerome Marchand wrote: > On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > > diff --git a/mm/rmap.c b/mm/rmap.c > > index dad23a43e42c..4ca4b5cffd95 100644 > > --- a/mm/rmap.c > > +++ b/mm/rmap.c > > @@ -1048,9 +1048,9 @@ static void __page_check_anon_rma

Re: [PATCHv5 02/28] rmap: add argument to charge compound page

2015-04-29 Thread Jerome Marchand
On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > We're going to allow mapping of individual 4k pages of THP compound > page. It means we cannot rely on PageTransHuge() check to decide if > map/unmap small page or THP. > > The patch adds new argument to rmap functions to indicate whether we want