fix mmap issues caused by the vm_exports patch (thx, danm)

SVN-Revision: 14902
This commit is contained in:
Felix Fietkau 2009-03-16 22:14:22 +00:00
parent 1c7a03659c
commit 9b8ce25ba3
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@
- 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

View file

@ -24,7 +24,7 @@
- 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