- fput(vma->vm_file);
- vma->vm_file = file;
- vma->vm_ops = &shmem_vm_ops;
-+ shmem_set_file(vma, vma->vm_file);
++ shmem_set_file(vma, file);
return 0;
}
--- a/fs/file.c
/**
* zap_vma_ptes - remove ptes mapping the vma
-@@ -2241,6 +2242,7 @@ int vmtruncate_range(struct inode *inode
+@@ -2287,6 +2288,7 @@ int vmtruncate_range(struct inode *inode
return 0;
}