From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [patch 05/19] split LRU lists into anon & file sets From: Lee Schermerhorn In-Reply-To: <20080111104258.2d1df3de@bree.surriel.com> References: <20080108205939.323955454@redhat.com> <20080108210002.638347207@redhat.com> <20080111143627.FD64.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20080111104258.2d1df3de@bree.surriel.com> Content-Type: text/plain Date: Fri, 11 Jan 2008 10:59:18 -0500 Message-Id: <1200067158.5304.17.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Rik van Riel Cc: KOSAKI Motohiro , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Fri, 2008-01-11 at 10:42 -0500, Rik van Riel wrote: > On Fri, 11 Jan 2008 15:24:34 +0900 > KOSAKI Motohiro wrote: > > > below patch is a bit cleanup proposal. > > i think LRU_FILE is more clarify than "/2". > > > > What do you think it? > > Thank you for the cleanup, your version looks a lot nicer. > I have applied your patch to my series. > Rik: I think we also want to do something like: - BUILD_BUG_ON(LRU_INACTIVE_FILE != 2 || LRU_ACTIVE_FILE != 3); + BUILD_BUG_ON(LRU_INACTIVE_FILE != 2 || LRU_ACTIVE_FILE != 3 || + NR_LRU_LISTS > 6); Then we'll be warned if future change might break our implicit assumption that any lru_list value with '0x2' set is a file lru. Lee -- 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