Re: [PATCH 2/3] mm: accelerate mm_populate() treatment of THP pages

2013-02-01 Thread Andrew Morton
On Wed, 30 Jan 2013 16:26:19 -0800 Michel Lespinasse wrote: > This change adds a page_mask argument to follow_page. > > follow_page sets *page_mask to HPAGE_PMD_NR - 1 when it encounters a THP page, > and to 0 in other cases. > > __get_user_pages() makes use of this in order to accelerate popul

Re: [PATCH 2/3] mm: accelerate mm_populate() treatment of THP pages

2013-01-30 Thread Michel Lespinasse
On Wed, Jan 30, 2013 at 7:05 PM, Hugh Dickins wrote: > On Wed, 30 Jan 2013, Michel Lespinasse wrote: > >> This change adds a page_mask argument to follow_page. >> >> follow_page sets *page_mask to HPAGE_PMD_NR - 1 when it encounters a THP >> page, >> and to 0 in other cases. >> >> __get_user_page

Re: [PATCH 2/3] mm: accelerate mm_populate() treatment of THP pages

2013-01-30 Thread Hugh Dickins
On Wed, 30 Jan 2013, Michel Lespinasse wrote: > This change adds a page_mask argument to follow_page. > > follow_page sets *page_mask to HPAGE_PMD_NR - 1 when it encounters a THP page, > and to 0 in other cases. > > __get_user_pages() makes use of this in order to accelerate populating > THP ran

[PATCH 2/3] mm: accelerate mm_populate() treatment of THP pages

2013-01-30 Thread Michel Lespinasse
This change adds a page_mask argument to follow_page. follow_page sets *page_mask to HPAGE_PMD_NR - 1 when it encounters a THP page, and to 0 in other cases. __get_user_pages() makes use of this in order to accelerate populating THP ranges - that is, when both the pages and vmas arrays are NULL,