Skip to content

Commit 56cf705

Browse files
Andrew MortonDavid S. Miller
authored andcommitted
[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.
1 parent 86c662d commit 56cf705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/rmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ page_add_rmap(struct page *page, pte_t *ptep, struct pte_chain *pte_chain)
171171
pte_addr_t pte_paddr = ptep_to_paddr(ptep);
172172
struct pte_chain *cur_pte_chain;
173173

174-
if (!pfn_valid(page_to_pfn(page)) || PageReserved(page))
174+
if (PageReserved(page))
175175
return pte_chain;
176176

177177
pte_chain_lock(page);

0 commit comments

Comments
 (0)