Commit 56cf7057 authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[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.
parent 86c662db
...@@ -171,7 +171,7 @@ page_add_rmap(struct page *page, pte_t *ptep, struct pte_chain *pte_chain) ...@@ -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); pte_addr_t pte_paddr = ptep_to_paddr(ptep);
struct pte_chain *cur_pte_chain; struct pte_chain *cur_pte_chain;
if (!pfn_valid(page_to_pfn(page)) || PageReserved(page)) if (PageReserved(page))
return pte_chain; return pte_chain;
pte_chain_lock(page); pte_chain_lock(page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment