Re: [PATCHv6 29/36] thp: implement split_huge_pmd()

2015-06-22 Thread Vlastimil Babka
On 06/22/2015 01:14 PM, Kirill A. Shutemov wrote: On Thu, Jun 11, 2015 at 11:49:48AM +0200, Vlastimil Babka wrote: On 06/03/2015 07:06 PM, Kirill A. Shutemov wrote: The order of actions here means that between TestSetPageDoubleMap() and the atomic incs, anyone calling page_mapcount() on one of

Re: [PATCHv6 29/36] thp: implement split_huge_pmd()

2015-06-22 Thread Kirill A. Shutemov
On Thu, Jun 11, 2015 at 11:49:48AM +0200, Vlastimil Babka wrote: > On 06/03/2015 07:06 PM, Kirill A. Shutemov wrote: > >Original split_huge_page() combined two operations: splitting PMDs into > >tables of PTEs and splitting underlying compound page. This patch > >implements split_huge_pmd() which s

Re: [PATCHv6 29/36] thp: implement split_huge_pmd()

2015-06-11 Thread Vlastimil Babka
On 06/03/2015 07:06 PM, Kirill A. Shutemov wrote: Original split_huge_page() combined two operations: splitting PMDs into tables of PTEs and splitting underlying compound page. This patch implements split_huge_pmd() which split given PMD without splitting other PMDs this page mapped with or under