login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
11
Re: [patch 05/19] split LRU lists into anon & file sets
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Lee Schermerhorn <Lee.Schermerhorn@...>
To: Rik van Riel <riel@...>
Cc: KOSAKI Motohiro <kosaki.motohiro@...>, <linux-kernel@...>, <linux-mm@...>
Subject:
Re: [patch 05/19] split LRU lists into anon & file sets
Date: Friday, January 11, 2008 - 3:51 pm
On Fri, 2008-01-11 at 11:15 -0500, Rik van Riel wrote:
quoted text
> On Fri, 11 Jan 2008 10:59:18 -0500 > Lee Schermerhorn <Lee.Schermerhorn@hp.com> wrote: > > > On Fri, 2008-01-11 at 10:42 -0500, Rik van Riel wrote: > > > On Fri, 11 Jan 2008 15:24:34 +0900 > > > KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> 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. > > Restoring the code to your original version makes things work again. > > OTOH, I almost wonder if we should not simply define it to > > return (l == LRU_INACTIVE_FILE || l == LRU_ACTIVE_FILE) > > and just deal with it. > > Your version of the code is correct and probably faster, but not as > easy to read and probably not in a hot path :)
Sure. Whatever you think will fly... Lee
quoted text
>
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Tue Jan 8, 4:59 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Tue Jan 29, 11:25 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Wed Jan 30, 4:57 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Wed Feb 6, 8:35 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Wed Feb 6, 9:20 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Wed Feb 6, 9:36 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Lee Schermerhorn
, (Wed Jan 30, 10:29 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Wed Jan 30, 9:17 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Thu Jan 31, 6:48 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Thu Jan 31, 6:59 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Fri Jan 11, 3:35 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 11:46 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Mon Jan 14, 7:57 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Fri Jan 11, 2:24 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Lee Schermerhorn
, (Fri Jan 11, 11:50 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 12:06 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 11:42 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Lee Schermerhorn
, (Fri Jan 11, 11:59 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 12:15 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Lee Schermerhorn
, (Fri Jan 11, 3:51 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Thu Jan 10, 11:59 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 11:37 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KAMEZAWA Hiroyuki
, (Wed Jan 9, 10:28 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Wed Jan 9, 10:37 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KAMEZAWA Hiroyuki
, (Wed Jan 9, 12:41 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Balbir Singh
, (Wed Jan 9, 10:21 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KAMEZAWA Hiroyuki
, (Wed Jan 9, 10:36 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Balbir Singh
, (Wed Jan 9, 11:26 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KAMEZAWA Hiroyuki
, (Thu Jan 10, 12:23 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Christoph Lameter
, (Tue Jan 8, 6:22 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Tue Jan 8, 6:36 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Christoph Lameter
, (Tue Jan 8, 6:42 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Tue Jan 8, 10:45 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Zach Brown
[PATCH 3 of 4] Teach paths to wake a specific void * target instead of a whole tas...
Paul Jackson
Re: cpuset-remove-sched-domain-hooks-from-cpusets
Jeff Garzik
Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
linux-netdev
:
Eric Dumazet
Re: [PATCH] tcp: splice as many packets as possible at once
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Ingo Molnar
Re: [GIT]: Networking
Alexey Dobriyan
[PATCH 06/53] netns xfrm: per-netns xfrm_state_bysrc hash
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
980 guests
online.
Online users
maheshdm
Syndicate