[tip:numa/core] numa, mm: Remove paranoia checks from do_huge_pmd_numa_page()

From: tip-bot for Ingo Molnar
Date: Sun Oct 21 2012 - 11:21:15 EST


Commit-ID: 9e1696b792d97b7fea2d650d4d7a42a92e85c4b0
Gitweb: http://git.kernel.org/tip/9e1696b792d97b7fea2d650d4d7a42a92e85c4b0
Author: Ingo Molnar <mingo@xxxxxxxxxx>
AuthorDate: Sun, 21 Oct 2012 16:32:33 +0200
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitDate: Sun, 21 Oct 2012 16:32:33 +0200

numa, mm: Remove paranoia checks from do_huge_pmd_numa_page()

Remove a couple of debugging checks from do_huge_pmd_numa_page().

Cc: Rik van Riel <riel@xxxxxxxxxx>
Cc: aarcange@xxxxxxxxxx
Cc: a.p.zijlstra@xxxxxxxxx
Link: http://lkml.kernel.org/n/tip-nhyrhlt42RlghgatXyughvyi@xxxxxxxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
mm/huge_memory.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index a8f6531..5aa935a 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -782,10 +782,6 @@ unlock:
return;

migrate:
- WARN_ON(!(((unsigned long)page->mapping & PAGE_MAPPING_ANON)));
- WARN_ON((((unsigned long)page->mapping & PAGE_MAPPING_KSM)));
- BUG_ON(PageSwapCache(page));
-
spin_unlock(&mm->page_table_lock);

lock_page(page);
@@ -802,8 +798,6 @@ migrate:
(GFP_TRANSHUGE | GFP_THISNODE) & ~__GFP_WAIT,
HPAGE_PMD_ORDER);

- WARN_ON(PageLRU(new_page));
-
if (!new_page)
goto alloc_fail;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/