lkml.org 
[lkml]   [2001]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: pre12 VM doubts and patch
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/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.066 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site