mm/hmm: do not differentiate between empty entry or missing directory
authorJérôme Glisse <[email protected]>
Tue, 10 Apr 2018 23:28:46 +0000 (16:28 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Apr 2018 17:28:30 +0000 (10:28 -0700)
commit5504ed29692faad06ea74c4275e96a8ffc83a1e1
treefc5b15aa9076aeedd248c339b442ca7ad5c372e7
parent855ce7d2525c97cf706ad82a419f0c2d632b9481
mm/hmm: do not differentiate between empty entry or missing directory

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 hmm_vma_walk_clear() functions.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jérôme Glisse <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
Cc: Evgeny Baskakov <[email protected]>
Cc: Ralph Campbell <[email protected]>
Cc: Mark Hairgrove <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/hmm.h
mm/hmm.c