aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-02-23 18:24:13 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-23 20:13:25 -0500
commit7fde4c3eb7ee68828d76a2148ed6d70b6a794add (patch)
treede983bf2234e050cb22eb653ab9e363186d9acc7 /mm/memcontrol.c
parent2324c5dd47233859cd7ba6272d0601f26ce60dcd (diff)
memcgroup: remove a useless VM_BUG_ON()
Remove this VM_BUG_ON(), as Balbir stated: We used to have a for loop with !list_empty() as a termination condition and VM_BUG_ON(!pc) is a spill over. With the new loop, VM_BUG_ON(!pc) does not make sense. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Balbir Singh <balbir@in.ibm.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6bded84c20c8..bb4d7acfbca3 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -534,7 +534,6 @@ unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan,
534 if (scan >= nr_to_scan) 534 if (scan >= nr_to_scan)
535 break; 535 break;
536 page = pc->page; 536 page = pc->page;
537 VM_BUG_ON(!pc);
538 537
539 if (unlikely(!PageLRU(page))) 538 if (unlikely(!PageLRU(page)))
540 continue; 539 continue;