Re: pre12 VM doubts and patch

From: Andrea Arcangeli (andrea@suse.de)
Date: Thu Sep 20 2001 - 01:38:42 EST


On Wed, Sep 19, 2001 at 11:31:45PM -0700, Linus Torvalds wrote:
> So I would suggest:
>
> if (exclusive_swap_page(page)) {
> if (vma->vm_flags & VM_WRITE)
> pte = pte_mkwrite(pte);
> pte = pte_mkdirty(pte);
> delete_from_swap_cache_nolock(page);
> }
>
> or similar.

indeed, agreed.

Andrea
-
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/



This archive was generated by hypermail 2b29 : Sun Sep 23 2001 - 21:00:36 EST