aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi RongQing <[email protected]>2016-07-26 15:26:53 -0700
committerLinus Torvalds <[email protected]>2016-07-26 16:19:19 -0700
commit17408d785a2eda374b7e673afe20309687a63f08 (patch)
tree58af47c6e3d8969dfeedd8c90f7f70f0a7e2d09b
parentdd4123f324bbaec7618b677b7bce2b11aee9594e (diff)
mm: memcontrol: remove BUG_ON in uncharge_list
When calling uncharge_list, if a page is transparent huge we don't need to BUG_ON about non-transparent huge, since nobody should be able to see the page at this stage and this page cannot be raced against with a THP split. This check became unneeded after 0a31bc97c80c ("mm: memcontrol: rewrite uncharge API"). [[email protected]: changelog enhancements] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Li RongQing <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Johannes Weiner <[email protected]> Cc: Vladimir Davydov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/memcontrol.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 1a1a3093a5c9..36d6e324fadc 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5580,7 +5580,6 @@ static void uncharge_list(struct list_head *page_list)
if (PageTransHuge(page)) {
nr_pages <<= compound_order(page);
- VM_BUG_ON_PAGE(!PageTransHuge(page), page);
nr_huge += nr_pages;
}
if (PageAnon(page))