1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-02 17:12:35 +03:00

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14902 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-03-16 22:14:22 +00:00
parent 0c23be3463
commit a9ed7ecf22
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