summaryrefslogtreecommitdiffstats
path: root/mm/mremap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mremap.c')
-rw-r--r--mm/mremap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/mremap.c b/mm/mremap.c
index b147f66f4c40..c855922497a3 100644
--- a/mm/mremap.c
+++ b/mm/mremap.c
@@ -288,7 +288,8 @@ static unsigned long move_vma(struct vm_area_struct *vma,
288 old_len = new_len; 288 old_len = new_len;
289 old_addr = new_addr; 289 old_addr = new_addr;
290 new_addr = -ENOMEM; 290 new_addr = -ENOMEM;
291 } 291 } else if (vma->vm_file && vma->vm_file->f_op->mremap)
292 vma->vm_file->f_op->mremap(vma->vm_file, new_vma);
292 293
293 /* Conceal VM_ACCOUNT so old reservation is not undone */ 294 /* Conceal VM_ACCOUNT so old reservation is not undone */
294 if (vm_flags & VM_ACCOUNT) { 295 if (vm_flags & VM_ACCOUNT) {