On Tue, Sep 18, 2012 at 08:53:45PM -0700, Hugh Dickins wrote:
> 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 <hu...@google.com>
> Cc: Mel Gorman <m...@csn.ul.ie>
> Cc: Rik van Riel <r...@redhat.com>
> Cc: Johannes Weiner <han...@cmpxchg.org>
> Cc: Michel Lespinasse <wal...@google.com>
> Cc: Ying Han <ying...@google.com>

Much better.  With documentation updates and everything, thank you!

Acked-by: Johannes Weiner <han...@cmpxchg.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to