Re: [PATCH v3 5/6] mm/hugetlb: add migration entry check in __unmap_hugepage_range

2014-09-04 Thread Naoya Horiguchi
On Wed, Sep 03, 2014 at 06:47:38PM -0700, Hugh Dickins wrote: > On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > > > If __unmap_hugepage_range() tries to unmap the address range over which > > hugepage migration is on the way, we get the wrong page because pte_page() > > doesn't work for migration en

Re: [PATCH v3 5/6] mm/hugetlb: add migration entry check in __unmap_hugepage_range

2014-09-03 Thread Hugh Dickins
On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > If __unmap_hugepage_range() tries to unmap the address range over which > hugepage migration is on the way, we get the wrong page because pte_page() > doesn't work for migration entries. This patch calls pte_to_swp_entry() and > migration_entry_to_page

[PATCH v3 5/6] mm/hugetlb: add migration entry check in __unmap_hugepage_range

2014-08-28 Thread Naoya Horiguchi
If __unmap_hugepage_range() tries to unmap the address range over which hugepage migration is on the way, we get the wrong page because pte_page() doesn't work for migration entries. This patch calls pte_to_swp_entry() and migration_entry_to_page() to get the right page for migration entries. Sign