lkml.org 
[lkml]   [2000]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: VM_RESERVED [was Re: mapping user space buffer to kernel address space]


On Fri, 20 Oct 2000, Jeff Garzik wrote:
>
> If I understand your patch, I should call vma_reserve(), and then
> completely remove my no-op swapout(). Correct?

Note that I dislike "wrapper.h", and I just removed that part.

I don't think it's any clearer to write "vma_reserve(vma)" than it is to
just say "vma->vm_flags |= VM_RESERVE".

But yes, add that line and remove the swapout, and you should be golden -
no unnecessary faults (well, it won't pre-fault, of course) and no trouble
with calculating locked pages.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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