All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON()
@ 2008-02-18  5:59 Li Zefan
  2008-02-18  6:14 ` Balbir Singh
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Li Zefan @ 2008-02-18  5:59 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Balbir Singh, KAMEZAWA Hiroyuki, LKML, containers

No need for VM_BUG_ON(pc), since 'pc' is the list entry. This should
be VM_BUG_ON(page).

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
---
 mm/memcontrol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6bded84..c2959ee 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -534,7 +534,7 @@ unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan,
 		if (scan >= nr_to_scan)
 			break;
 		page = pc->page;
-		VM_BUG_ON(!pc);
+		VM_BUG_ON(!page);
 
 		if (unlikely(!PageLRU(page)))
 			continue;
-- 
1.5.4.rc3


^ permalink raw reply related	[flat|nested] 22+ messages in thread
* [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON()
@ 2008-02-18  5:59 Li Zefan
  0 siblings, 0 replies; 22+ messages in thread
From: Li Zefan @ 2008-02-18  5:59 UTC (permalink / raw)
  To: Andrew Morton
  Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, LKML,
	Balbir Singh

No need for VM_BUG_ON(pc), since 'pc' is the list entry. This should
be VM_BUG_ON(page).

Signed-off-by: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
---
 mm/memcontrol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6bded84..c2959ee 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -534,7 +534,7 @@ unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan,
 		if (scan >= nr_to_scan)
 			break;
 		page = pc->page;
-		VM_BUG_ON(!pc);
+		VM_BUG_ON(!page);
 
 		if (unlikely(!PageLRU(page)))
 			continue;
-- 
1.5.4.rc3

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2008-02-18  8:48 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18  5:59 [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON() Li Zefan
2008-02-18  6:14 ` Balbir Singh
2008-02-18  6:22   ` YAMAMOTO Takashi
2008-02-18  6:20     ` Balbir Singh
     [not found]       ` <47B923C8.3090904-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-02-18  6:47         ` Li Zefan
2008-02-18  6:47       ` Li Zefan
2008-02-18  7:01         ` Balbir Singh
2008-02-18  7:14           ` Li Zefan
     [not found]           ` <47B92D47.2050008-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-02-18  7:14             ` Li Zefan
2008-02-18  7:34             ` [PATCH] memcgroup: remove a useless VM_BUG_ON() Li Zefan
2008-02-18  7:34           ` Li Zefan
2008-02-18  8:12             ` Balbir Singh
     [not found]             ` <47B93518.6-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-02-18  8:12               ` Balbir Singh
2008-02-18  8:48               ` KAMEZAWA Hiroyuki
2008-02-18  8:48             ` KAMEZAWA Hiroyuki
     [not found]         ` <47B929EE.7080202-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-02-18  7:01           ` [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON() Balbir Singh
     [not found]     ` <20080218062209.DA59B1E3C58-Pcsii4f/SVk@public.gmane.org>
2008-02-18  6:20       ` Balbir Singh
     [not found]   ` <47B9223C.9020106-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-02-18  6:22     ` YAMAMOTO Takashi
     [not found] ` <47B91EC2.3020805-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-02-18  6:14   ` Balbir Singh
2008-02-18  6:39   ` YAMAMOTO Takashi
2008-02-18  6:39 ` YAMAMOTO Takashi
  -- strict thread matches above, loose matches on Subject: below --
2008-02-18  5:59 Li Zefan

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.