Re: [PATCH 09/14] mm/hmm: do not differentiate between empty entry or missing directory

2018-03-19 Thread Jerome Glisse
On Mon, Mar 19, 2018 at 04:06:11PM -0700, John Hubbard wrote: [...] > > @@ -419,7 +404,7 @@ static int hmm_vma_walk_pmd(pmd_t *pmdp, > > pfns[i] = 0; > > > > if (pte_none(pte)) { > > - pfns[i] = HMM_PFN_EMPTY; > > + pfns[i] = 0; > >

Re: [PATCH 09/14] mm/hmm: do not differentiate between empty entry or missing directory

2018-03-19 Thread Jerome Glisse
On Mon, Mar 19, 2018 at 04:06:11PM -0700, John Hubbard wrote: [...] > > @@ -419,7 +404,7 @@ static int hmm_vma_walk_pmd(pmd_t *pmdp, > > pfns[i] = 0; > > > > if (pte_none(pte)) { > > - pfns[i] = HMM_PFN_EMPTY; > > + pfns[i] = 0; > >

Re: [PATCH 09/14] mm/hmm: do not differentiate between empty entry or missing directory

2018-03-19 Thread John Hubbard
On 03/16/2018 12:14 PM, jgli...@redhat.com wrote: > From: Jérôme Glisse > > There is no point in differentiating between a range for which there > is not even a directory (and thus entries) and empty entry (pte_none() > or pmd_none() returns true). > > Simply drop the

Re: [PATCH 09/14] mm/hmm: do not differentiate between empty entry or missing directory

2018-03-19 Thread John Hubbard
On 03/16/2018 12:14 PM, jgli...@redhat.com wrote: > From: Jérôme Glisse > > There is no point in differentiating between a range for which there > is not even a directory (and thus entries) and empty entry (pte_none() > or pmd_none() returns true). > > Simply drop the distinction ie remove

[PATCH 09/14] mm/hmm: do not differentiate between empty entry or missing directory

2018-03-16 Thread jglisse
From: Jérôme Glisse There is no point in differentiating between a range for which there is not even a directory (and thus entries) and empty entry (pte_none() or pmd_none() returns true). Simply drop the distinction ie remove HMM_PFN_EMPTY flag and merge now duplicate

[PATCH 09/14] mm/hmm: do not differentiate between empty entry or missing directory

2018-03-16 Thread jglisse
From: Jérôme Glisse There is no point in differentiating between a range for which there is not even a directory (and thus entries) and empty entry (pte_none() or pmd_none() returns true). Simply drop the distinction ie remove HMM_PFN_EMPTY flag and merge now duplicate hmm_vma_walk_hole() and