From 290fa172d35194aebc42b0d7076942391bf9deef Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 26 Apr 2013 21:07:03 +0200 Subject: 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 --- scullp/mmap.c | 1 - 1 file changed, 1 deletion(-) (limited to 'scullp/mmap.c') 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; -- cgit v1.2.1-18-gbd029