From: Hugh Dickins <hugh@veritas.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Mel Gorman <mel@csn.ul.ie>,
Balbir Singh <balbir@linux.vnet.ibm.com>,
Pavel Emelyanov <xemul@openvz.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH rc5-mm1 2/3] just return do_try_to_free_pages
Date: Tue, 11 Mar 2008 21:14:01 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.64.0803112112310.17067@blonde.site> (raw)
In-Reply-To: <Pine.LNX.4.64.0803112108470.17067@blonde.site>
do_try_to_free_pages returns 0 or 1, and try_to_free_mem_cgroup_pages
returns 0 or 1 accordingly: let's accomplish that in the obvious way.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
---
mm/vmscan.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- 2.6.25-rc5-mm1+/mm/vmscan.c 2008-03-11 20:09:05.000000000 +0000
+++ linux/mm/vmscan.c 2008-03-11 20:15:47.000000000 +0000
@@ -1457,9 +1457,7 @@ unsigned long try_to_free_mem_cgroup_pag
sc.gfp_mask = (gfp_mask & GFP_RECLAIM_MASK) |
(GFP_HIGHUSER_MOVABLE & ~GFP_RECLAIM_MASK);
zonelist = NODE_DATA(numa_node_id())->node_zonelists;
- if (do_try_to_free_pages(zonelist, sc.gfp_mask, &sc))
- return 1;
- return 0;
+ return do_try_to_free_pages(zonelist, sc.gfp_mask, &sc);
}
#endif
next prev parent reply other threads:[~2008-03-11 21:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-11 21:12 [PATCH rc5-mm1 1/3] mm-have-zonelist: fix memcg ooms Hugh Dickins
2008-03-11 21:14 ` Hugh Dickins [this message]
2008-03-12 13:58 ` [PATCH rc5-mm1 2/3] just return do_try_to_free_pages Mel Gorman
2008-03-11 21:16 ` [PATCH rc5-mm1 3/3] do_try_to_free_pages gfp_mask redundant Hugh Dickins
2008-03-12 14:04 ` Mel Gorman
2008-03-12 7:38 ` [PATCH rc5-mm1 1/3] mm-have-zonelist: fix memcg ooms Balbir Singh
2008-03-12 12:29 ` Mel Gorman
2008-03-12 13:34 ` Hugh Dickins
2008-03-12 13:55 ` Mel Gorman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0803112112310.17067@blonde.site \
--to=hugh@veritas.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mel@csn.ul.ie \
--cc=xemul@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®