From 56cf70578f93237aab62d02fd14071d998338e06 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 18 Feb 2004 16:37:44 -0800 Subject: [PATCH] [PATCH] page_add_rmap(): remove meaningless test Remove page validity test. I had a warning in there for a few weeks, no reports of it happening. --- mm/rmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/rmap.c b/mm/rmap.c index a383b7d0511478..4c8447e8ca89ec 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -171,7 +171,7 @@ page_add_rmap(struct page *page, pte_t *ptep, struct pte_chain *pte_chain) pte_addr_t pte_paddr = ptep_to_paddr(ptep); struct pte_chain *cur_pte_chain; - if (!pfn_valid(page_to_pfn(page)) || PageReserved(page)) + if (PageReserved(page)) return pte_chain; pte_chain_lock(page);