summaryrefslogtreecommitdiffstats
path: root/simple
diff options
context:
space:
mode:
Diffstat (limited to 'simple')
-rw-r--r--simple/simple.c6
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;