Re: [RFC] Distributed mmap API

Andrew Morton
2004-02-25T22:07:27Z

Daniel Phillips <phillips@arcor.de> wrote:
>
> - 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())