From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mel Gorman Subject: Re: [PATCH v6 07/31] list: add a new LRU list type Date: Mon, 13 May 2013 10:25:23 +0100 Message-ID: <20130513092523.GA23384@suse.de> References: <1368382432-25462-1-git-send-email-glommer@openvz.org> <1368382432-25462-8-git-send-email-glommer@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Cc: linux-mm@kvack.org, cgroups@vger.kernel.org, Andrew Morton , Greg Thelen , kamezawa.hiroyu@jp.fujitsu.com, Michal Hocko , Johannes Weiner , linux-fsdevel@vger.kernel.org, Dave Chinner , Dave Chinner To: Glauber Costa Return-path: Content-Disposition: inline In-Reply-To: <1368382432-25462-8-git-send-email-glommer@openvz.org> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On Sun, May 12, 2013 at 10:13:28PM +0400, Glauber Costa wrote: > From: Dave Chinner > > Several subsystems use the same construct for LRU lists - a list > head, a spin lock and and item count. They also use exactly the same > code for adding and removing items from the LRU. Create a generic > type for these LRU lists. > > This is the beginning of generic, node aware LRUs for shrinkers to > work with. > > [ glommer: enum defined constants for lru. Suggested by gthelen, > don't relock over retry ] > Signed-off-by: Dave Chinner > Signed-off-by: Glauber Costa > Reviewed-by: Greg Thelen 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