Re: [PATCH] add page->mapping handling interface [1/35] interface definitions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Richard Knutsson
Date: Thursday, September 13, 2007 - 1:19 pm

KAMEZAWA Hiroyuki wrote:
Why return it as an 'int' instead of 'bool'?
Not easier with 'return page->mapping && (page->mapping & 
PAGE_MAPPING_ANON) == 0;'?
<snip>
Change to bool? Then "you" can also remove the '!!' from:
mm/memory.c:483:                rss[!!PageAnon(page)]++;
<snip>

If you don't mind bool(eans) (for some reason), I can/will check out the 
rest.

Richard Knutsson

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] add page-&gt;mapping handling interface [0/35] intro, KAMEZAWA Hiroyuki, (Mon Sep 10, 2:40 am)
Re: [PATCH] add page->mapping handling interface [1/35] in ..., Richard Knutsson, (Thu Sep 13, 1:19 pm)