From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx187.postini.com [74.125.245.187]) by kanga.kvack.org (Postfix) with SMTP id AAA386B005D for ; Fri, 21 Sep 2012 08:30:59 -0400 (EDT) Date: Fri, 21 Sep 2012 13:30:56 +0100 From: Mel Gorman Subject: Re: [PATCH 2/4] mm: remove vma arg from page_evictable Message-ID: <20120921123056.GC11157@csn.ul.ie> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Hugh Dickins Cc: Andrew Morton , Rik van Riel , Johannes Weiner , Michel Lespinasse , Ying Han , linux-mm@kvack.org, linux-kernel@vger.kernel.org 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 > Cc: Mel Gorman > Cc: Rik van Riel > Cc: Johannes Weiner > Cc: Michel Lespinasse > Cc: Ying Han Acked-by: Mel Gorman -- Mel Gorman SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org