Please sign in to comment.
mm: remove vma arg from page_evictable
page_evictable(page, vma) is an irritant: almost all its callers pass NULL for vma. Remove the vma arg and use mlocked_vma_newpage(vma, page) explicitly in the couple of places it's needed. But in those places we don't even need page_evictable() itself! They're dealing with a freshly allocated anonymous page, which has no "mapping" and cannot be mlocked yet. Signed-off-by: Hugh Dickins <firstname.lastname@example.org> Acked-by: Mel Gorman <email@example.com> Cc: Rik van Riel <firstname.lastname@example.org> Acked-by: Johannes Weiner <email@example.com> Cc: Michel Lespinasse <firstname.lastname@example.org> Cc: Ying Han <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...
Showing with 18 additions and 32 deletions.