Skip to content

Commit

Permalink
[PATCH] page_add_rmap(): remove meaningless test
Browse files Browse the repository at this point in the history
Remove page validity test.  I had a warning in there for a few weeks, no
reports of it happening.
  • Loading branch information
Andrew Morton authored and David S. Miller committed Feb 19, 2004
1 parent 86c662d commit 56cf705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 56cf705

Please sign in to comment.