Re: [RFC] Distributed mmap API
From: Daniel Phillips <hidden>
Date: 2004-02-25 22:13:11
Also in:
lkml
From: Daniel Phillips <hidden>
Date: 2004-02-25 22:13:11
Also in:
lkml
On Wednesday 25 February 2004 17:07, Andrew Morton wrote:
Daniel Phillips [off-list ref] wrote:quoted
- pte = ptep_get_and_clear(ptep); + if (unlikely(!all) && is_anon(pfn_to_page(pfn))) + continue; + pte = ptep_get_and_clear(ptep); /* get dirty bit atomically */ tlb_remove_tlb_entry(tlb, ptep, address+offset); if (pfn_valid(pfn)) {I think you need to check pfn_valid() before running is_anon(pfn_to_page())
Easy enough: if (unlikely(!all) && pfn_valid(pfn) && is_anon(pfn_to_page(pfn))) but how can we legitimately get !pfn_valid there? Regards, Daniel -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>