Re: do_mmap()

Mark Hemment (markhe@nextd.demon.co.uk)
Sat, 16 Nov 1996 23:48:24 +0000 (GMT)


It makes sure that locked pages are in core (faulted in, if necessary) -
similar code is also in mm/mlock.c.

markhe

On Sat, 16 Nov 1996, David L. Oppenheimer wrote:
> Does anyone know what the purpose of this piece of code is? (It appears at the
> end of do_mmap() in mm/mmap.c)
> if (flags & VM_LOCKED) {
> unsigned long start = addr;
> mm->locked_vm += len >> PAGE_SHIFT;
> [...cut...]
> }