Messages in this thread | | | Date | Sun, 12 Oct 2003 04:56:44 -0700 | From | Andrew Morton <> | Subject | Re: [RFC] invalidate_mmap_range() misses remap_file_pages()-affected targets |
| |
William Lee Irwin III <wli@holomorphy.com> wrote: > > It would seem that mincore() shares a similar issue on account of its > algorithm
Yes, I think it makes sense to fix mincore(). I don't fully understand the reasoning behind the three cases though:
+ if (pte_file(*pte)) + present = mincore_linear_page(vma, pte_to_pgoff(*pte)); + else if (!(vma->vm_flags | (VM_READ|VM_WRITE|VM_MAYREAD|VM_MAYWRITE))) + present = pte_present(*pte); + else + present = mincore_linear_page(vma, pgoff);
Could you explain the logic behind each of these? Perhaps with permanent comments?
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |