]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/mremap.c
Merge branch 'for-3.19' of git://linux-nfs.org/~bfields/linux
[karo-tx-linux.git] / mm / mremap.c
index 84aa36f9f30886358d048aa3240eae36b9e72d0e..17fa018f5f3909316db297df9019a94880392f24 100644 (file)
@@ -288,7 +288,8 @@ static unsigned long move_vma(struct vm_area_struct *vma,
                old_len = new_len;
                old_addr = new_addr;
                new_addr = -ENOMEM;
-       }
+       } else if (vma->vm_file && vma->vm_file->f_op->mremap)
+               vma->vm_file->f_op->mremap(vma->vm_file, new_vma);
 
        /* Conceal VM_ACCOUNT so old reservation is not undone */
        if (vm_flags & VM_ACCOUNT) {