All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* + memcg-fix-build-warning-and-avoid-checking-for-mem-=-null-again-and-again.patch added to -mm tree
@ 2009-05-28  9:09 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-05-28  9:09 UTC (permalink / raw
  To: mm-commits; +Cc: knikanth, kamezawa.hiroyu, penberg


The patch titled
     memcg: fix build warning and avoid checking for mem != null again and again
has been added to the -mm tree.  Its filename is
     memcg-fix-build-warning-and-avoid-checking-for-mem-=-null-again-and-again.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: memcg: fix build warning and avoid checking for mem != null again and again
From: Nikanth Karthikesan <knikanth@suse.de>

Fix build warning, "mem_cgroup_is_obsolete defined but not used" when
CONFIG_DEBUG_VM is not set.  Also avoid checking for !mem again and again.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/memcontrol.c |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff -puN mm/memcontrol.c~memcg-fix-build-warning-and-avoid-checking-for-mem-=-null-again-and-again mm/memcontrol.c
--- a/mm/memcontrol.c~memcg-fix-build-warning-and-avoid-checking-for-mem-=-null-again-and-again
+++ a/mm/memcontrol.c
@@ -314,14 +314,6 @@ static struct mem_cgroup *try_get_mem_cg
 	return mem;
 }
 
-static bool mem_cgroup_is_obsolete(struct mem_cgroup *mem)
-{
-	if (!mem)
-		return true;
-	return css_is_removed(&mem->css);
-}
-

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-28  9:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28  9:09 + memcg-fix-build-warning-and-avoid-checking-for-mem-=-null-again-and-again.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.