git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Staging: Added Realtek rtl8192u driver to staging
[safe/jmp/linux-2.6]
/
mm
/
msync.c
diff --git
a/mm/msync.c
b/mm/msync.c
index
144a757
..
4083209
100644
(file)
--- a/
mm/msync.c
+++ b/
mm/msync.c
@@
-28,7
+28,7
@@
* So by _not_ starting I/O in MS_ASYNC we provide complete flexibility to
* applications.
*/
* So by _not_ starting I/O in MS_ASYNC we provide complete flexibility to
* applications.
*/
-
asmlinkage long sys_msync(unsigned long start, size_t len, int
flags)
+
SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int,
flags)
{
unsigned long end;
struct mm_struct *mm = current->mm;
{
unsigned long end;
struct mm_struct *mm = current->mm;
@@
-82,7
+82,7
@@
asmlinkage long sys_msync(unsigned long start, size_t len, int flags)
(vma->vm_flags & VM_SHARED)) {
get_file(file);
up_read(&mm->mmap_sem);
(vma->vm_flags & VM_SHARED)) {
get_file(file);
up_read(&mm->mmap_sem);
- error =
do_fsync(file
, 0);
+ error =
vfs_fsync(file, file->f_path.dentry
, 0);
fput(file);
if (error || start >= end)
goto out;
fput(file);
if (error || start >= end)
goto out;