summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scullc/mmap.c1
-rw-r--r--sculld/mmap.c1
-rw-r--r--scullp/mmap.c1
-rw-r--r--scullv/mmap.c1
-rw-r--r--simple/simple.c6
5 files changed, 0 insertions, 10 deletions
diff --git a/scullc/mmap.c b/scullc/mmap.c
index 1ba0698..4bf4094 100644
--- a/scullc/mmap.c
+++ b/scullc/mmap.c
@@ -109,7 +109,6 @@ int scullc_mmap(struct file *filp, struct vm_area_struct *vma)
/* don't do anything here: "nopage" will set up page table entries */
vma->vm_ops = &scullc_vm_ops;
- vma->vm_flags |= VM_RESERVED;
vma->vm_private_data = filp->private_data;
scullc_vma_open(vma);
return 0;
diff --git a/sculld/mmap.c b/sculld/mmap.c
index 45a1274..8a9075c 100644
--- a/sculld/mmap.c
+++ b/sculld/mmap.c
@@ -110,7 +110,6 @@ int sculld_mmap(struct file *filp, struct vm_area_struct *vma)
/* don't do anything here: "nopage" will set up page table entries */
vma->vm_ops = &sculld_vm_ops;
- vma->vm_flags |= VM_RESERVED;
vma->vm_private_data = filp->private_data;
sculld_vma_open(vma);
return 0;
diff --git a/scullp/mmap.c b/scullp/mmap.c
index 0616dcb..7623e9b 100644
--- a/scullp/mmap.c
+++ b/scullp/mmap.c
@@ -112,7 +112,6 @@ int scullp_mmap(struct file *filp, struct vm_area_struct *vma)
/* don't do anything here: "nopage" will set up page table entries */
vma->vm_ops = &scullp_vm_ops;
- vma->vm_flags |= VM_RESERVED;
vma->vm_private_data = filp->private_data;
scullp_vma_open(vma);
return 0;
diff --git a/scullv/mmap.c b/scullv/mmap.c
index 4b6f48c..e934f41 100644
--- a/scullv/mmap.c
+++ b/scullv/mmap.c
@@ -113,7 +113,6 @@ int scullv_mmap(struct file *filp, struct vm_area_struct *vma)
/* don't do anything here: "nopage" will set up page table entries */
vma->vm_ops = &scullv_vm_ops;
- vma->vm_flags |= VM_RESERVED;
vma->vm_private_data = filp->private_data;
scullv_vma_open(vma);
return 0;
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;