From: Randy Dunlap <randy.dunlap@oracle.com>
To: linux-kernel@vger.kernel.org, sfr@canb.auug.org.au
Cc: akpm@linux-foundation.org, kamezawa.hiroyu@jp.fujitsu.com
Subject: Re: + memcg-fix-reclaimable-lru-check-in-memcg-fix-2.patch added to -mm tree
Date: Mon, 4 Jul 2011 13:26:50 -0700 [thread overview]
Message-ID: <20110704132650.da7329c5.randy.dunlap@oracle.com> (raw)
In-Reply-To: <201107011936.p61JaKZE010589@imap1.linux-foundation.org>
On Fri, 01 Jul 2011 12:36:20 -0700 akpm@linux-foundation.org wrote:
>
> The patch titled
> memcg-fix-reclaimable-lru-check-in-memcg-fix-2
> has been added to the -mm tree. Its filename is
> memcg-fix-reclaimable-lru-check-in-memcg-fix-2.patch
>
Is there some way to get this patch added to linux-next?
thanks.
> ------------------------------------------------------
> Subject: memcg-fix-reclaimable-lru-check-in-memcg-fix-2
> From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>
> memcg-fix-reclaimable-lru-check-in-memcg.patch
> causes following error with !CONFIG_NUMA.
>
> > mmotm-2011-0630-1559/mm/memcontrol.c:1579: error: implicit declaration of function 'mem_cgroup_node_nr_file_lru_pages'
> > mmotm-2011-0630-1559/mm/memcontrol.c:1583: error: implicit declaration of function 'mem_cgroup_node_nr_anon_lru_pages'
> >
>
> This patch fixes it by moving functions out of #ifdef.
>
> Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> cked-by: Randy Dunlap <randy.dunlap@oracle.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> mm/memcontrol.c | 23 +++++++++++------------
> 1 file changed, 11 insertions(+), 12 deletions(-)
>
> diff -puN mm/memcontrol.c~memcg-fix-reclaimable-lru-check-in-memcg-fix-2 mm/memcontrol.c
> --- a/mm/memcontrol.c~memcg-fix-reclaimable-lru-check-in-memcg-fix-2
> +++ a/mm/memcontrol.c
> @@ -1120,7 +1120,6 @@ unsigned long mem_cgroup_zone_nr_lru_pag
> return MEM_CGROUP_ZSTAT(mz, lru);
> }
>
> -#ifdef CONFIG_NUMA
> static unsigned long mem_cgroup_node_nr_file_lru_pages(struct mem_cgroup *memcg,
> int nid)
> {
> @@ -1132,6 +1131,17 @@ static unsigned long mem_cgroup_node_nr_
> return ret;
> }
>
> +static unsigned long mem_cgroup_node_nr_anon_lru_pages(struct mem_cgroup *memcg,
> + int nid)
> +{
> + unsigned long ret;
> +
> + ret = mem_cgroup_get_zonestat_node(memcg, nid, LRU_INACTIVE_ANON) +
> + mem_cgroup_get_zonestat_node(memcg, nid, LRU_ACTIVE_ANON);
> + return ret;
> +}
> +
> +#if MAX_NUMNODES > 1
> static unsigned long mem_cgroup_nr_file_lru_pages(struct mem_cgroup *memcg)
> {
> u64 total = 0;
> @@ -1143,17 +1153,6 @@ static unsigned long mem_cgroup_nr_file_
> return total;
> }
>
> -static unsigned long mem_cgroup_node_nr_anon_lru_pages(struct mem_cgroup *memcg,
> - int nid)
> -{
> - unsigned long ret;
> -
> - ret = mem_cgroup_get_zonestat_node(memcg, nid, LRU_INACTIVE_ANON) +
> - mem_cgroup_get_zonestat_node(memcg, nid, LRU_ACTIVE_ANON);
> -
> - return ret;
> -}
> -
> static unsigned long mem_cgroup_nr_anon_lru_pages(struct mem_cgroup *memcg)
> {
> u64 total = 0;
> _
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
next parent reply other threads:[~2011-07-04 20:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201107011936.p61JaKZE010589@imap1.linux-foundation.org>
2011-07-04 20:26 ` Randy Dunlap [this message]
2011-07-05 0:32 ` + memcg-fix-reclaimable-lru-check-in-memcg-fix-2.patch added to -mm tree Stephen Rothwell
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=20110704132650.da7329c5.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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