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

SVN-Revision: 14902
owl
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