X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=mm%2Fmsync.c;h=4083209b7f02e068b94ac50c16d0739a539bc47b;hb=d324236b3333e87c8825b35f2104184734020d35;hp=358d73cf7b78949c2e62567b1ec89d000dd2cdf7;hpb=204ec841fbea3e5138168edbc3a76d46747cc987;p=safe%2Fjmp%2Flinux-2.6 diff --git a/mm/msync.c b/mm/msync.c index 358d73c..4083209 100644 --- a/mm/msync.c +++ b/mm/msync.c @@ -12,6 +12,7 @@ #include #include #include +#include /* * MS_SYNC syncs the entire file - including mappings. @@ -27,7 +28,7 @@ * 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; @@ -81,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); - error = do_fsync(file, 0); + error = vfs_fsync(file, file->f_path.dentry, 0); fput(file); if (error || start >= end) goto out;