fix mmap issues caused by the vm_exports patch (thx, danm)
SVN-Revision: 14902
This commit is contained in:
parent
1c7a03659c
commit
9b8ce25ba3
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
||||||
- fput(vma->vm_file);
|
- fput(vma->vm_file);
|
||||||
- vma->vm_file = file;
|
- vma->vm_file = file;
|
||||||
- vma->vm_ops = &shmem_vm_ops;
|
- vma->vm_ops = &shmem_vm_ops;
|
||||||
+ shmem_set_file(vma, vma->vm_file);
|
+ shmem_set_file(vma, file);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
--- a/fs/file.c
|
--- a/fs/file.c
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
- fput(vma->vm_file);
|
- fput(vma->vm_file);
|
||||||
- vma->vm_file = file;
|
- vma->vm_file = file;
|
||||||
- vma->vm_ops = &shmem_vm_ops;
|
- vma->vm_ops = &shmem_vm_ops;
|
||||||
+ shmem_set_file(vma, vma->vm_file);
|
+ shmem_set_file(vma, file);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
--- a/fs/file.c
|
--- a/fs/file.c
|
||||||
|
|
Loading…
Reference in a new issue