diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2013-04-26 21:07:03 +0200 |
---|---|---|
committer | Javier Martinez Canillas <javier@dowhile0.org> | 2013-04-26 21:57:00 +0200 |
commit | 290fa172d35194aebc42b0d7076942391bf9deef (patch) | |
tree | 173489215633197e31ea9f33ab32be71bd3f718a /simple | |
parent | 4c90483ad066ae42ec9d86e2b250f7dc96f72dfd (diff) | |
download | ldd3-290fa172d35194aebc42b0d7076942391bf9deef.tar.gz |
ldd3: get rid of deprecated VM_RESERVED vma flag
commit 314e51b9 ("mm: kill vma flag VM_RESERVED and mm->reserved_vm counter")
removed the VM_RESERVED vma flag since it lost original meaning.
VM_RESERVED was used on many drivers' mmap function handler to
avoid swap this memory area.
The same semantic can be specified with VM_IO | VM_DONTDUMP flags
but these are already set by remap_pfn_range() so they don't have
to be set in drivers mmap function handlers.
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Diffstat (limited to 'simple')
-rw-r--r-- | simple/simple.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/simple/simple.c b/simple/simple.c index c1f9438..f9bf602 100644 --- a/simple/simple.c +++ b/simple/simple.c @@ -120,12 +120,6 @@ static struct vm_operations_struct simple_nopage_vm_ops = { static int simple_nopage_mmap(struct file *filp, struct vm_area_struct *vma) { - unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; - - if (offset >= __pa(high_memory) || (filp->f_flags & O_SYNC)) - vma->vm_flags |= VM_IO; - vma->vm_flags |= VM_RESERVED; - vma->vm_ops = &simple_nopage_vm_ops; simple_vma_open(vma); return 0; |