Re: [PATCH 1/2] mm: Introduce wrapper to access mm->nr_ptes

2017-10-05 Thread Kirill A. Shutemov
On Wed, Oct 04, 2017 at 11:35:47AM -0700, Mike Kravetz wrote: > On 10/04/2017 09:36 AM, Kirill A. Shutemov wrote: > > @@ -813,7 +813,7 @@ static struct mm_struct *mm_init(struct mm_struct *mm, > > struct task_struct *p, > > init_rwsem(>mmap_sem); > > INIT_LIST_HEAD(>mmlist); > >

Re: [PATCH 1/2] mm: Introduce wrapper to access mm->nr_ptes

2017-10-05 Thread Kirill A. Shutemov
On Wed, Oct 04, 2017 at 11:35:47AM -0700, Mike Kravetz wrote: > On 10/04/2017 09:36 AM, Kirill A. Shutemov wrote: > > @@ -813,7 +813,7 @@ static struct mm_struct *mm_init(struct mm_struct *mm, > > struct task_struct *p, > > init_rwsem(>mmap_sem); > > INIT_LIST_HEAD(>mmlist); > >

Re: [PATCH 1/2] mm: Introduce wrapper to access mm->nr_ptes

2017-10-04 Thread Mike Kravetz
On 10/04/2017 09:36 AM, Kirill A. Shutemov wrote: > Let's add wrappers for ->nr_ptes with the same interface as for nr_pmd > and nr_pud. > > It's preparation for consolidation of page-table counters in mm_struct. > > Signed-off-by: Kirill A. Shutemov > --- >

Re: [PATCH 1/2] mm: Introduce wrapper to access mm->nr_ptes

2017-10-04 Thread Mike Kravetz
On 10/04/2017 09:36 AM, Kirill A. Shutemov wrote: > Let's add wrappers for ->nr_ptes with the same interface as for nr_pmd > and nr_pud. > > It's preparation for consolidation of page-table counters in mm_struct. > > Signed-off-by: Kirill A. Shutemov > --- > arch/arm/mm/pgd.c | 2 +-

[PATCH 1/2] mm: Introduce wrapper to access mm->nr_ptes

2017-10-04 Thread Kirill A. Shutemov
Let's add wrappers for ->nr_ptes with the same interface as for nr_pmd and nr_pud. It's preparation for consolidation of page-table counters in mm_struct. Signed-off-by: Kirill A. Shutemov --- arch/arm/mm/pgd.c | 2 +- arch/sparc/mm/hugetlbpage.c |

[PATCH 1/2] mm: Introduce wrapper to access mm->nr_ptes

2017-10-04 Thread Kirill A. Shutemov
Let's add wrappers for ->nr_ptes with the same interface as for nr_pmd and nr_pud. It's preparation for consolidation of page-table counters in mm_struct. Signed-off-by: Kirill A. Shutemov --- arch/arm/mm/pgd.c | 2 +- arch/sparc/mm/hugetlbpage.c | 2 +- arch/unicore32/mm/pgd.c