Re: [PATCH] mm: add page_check_address_transhuge helper

2015-11-06 Thread Kirill A. Shutemov
On Fri, Nov 06, 2015 at 05:37:07PM +0300, Vladimir Davydov wrote: > diff --git a/mm/rmap.c b/mm/rmap.c > index 0837487d3737..7ac775e41820 100644 > --- a/mm/rmap.c > +++ b/mm/rmap.c > @@ -796,48 +796,43 @@ int page_mapped_in_vma(struct page *page, struct > vm_area_struct *vma) > return 1; >

[PATCH] mm: add page_check_address_transhuge helper

2015-11-06 Thread Vladimir Davydov
page_referenced_one() and page_idle_clear_pte_refs_one() duplicate the code for looking up pte of a (possibly transhuge) page. Move this code to a new helper function, page_check_address_transhuge(), and make the above mentioned functions use it. This is just a cleanup, no functional changes are

[PATCH] mm: add page_check_address_transhuge helper

2015-11-06 Thread Vladimir Davydov
page_referenced_one() and page_idle_clear_pte_refs_one() duplicate the code for looking up pte of a (possibly transhuge) page. Move this code to a new helper function, page_check_address_transhuge(), and make the above mentioned functions use it. This is just a cleanup, no functional changes are

Re: [PATCH] mm: add page_check_address_transhuge helper

2015-11-06 Thread Kirill A. Shutemov
On Fri, Nov 06, 2015 at 05:37:07PM +0300, Vladimir Davydov wrote: > diff --git a/mm/rmap.c b/mm/rmap.c > index 0837487d3737..7ac775e41820 100644 > --- a/mm/rmap.c > +++ b/mm/rmap.c > @@ -796,48 +796,43 @@ int page_mapped_in_vma(struct page *page, struct > vm_area_struct *vma) > return 1; >