X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Fmsync.c;h=07dae08cf31c70c25b8c5ea6300265489c4c7d97;hb=8054576dca7e76dd1f58c525af3309cfc9c74454;hp=358d73cf7b78949c2e62567b1ec89d000dd2cdf7;hpb=8a84fc15ae5cafcc366dd85cf8e1ab2040679abc;p=mv-sheeva.git diff --git a/mm/msync.c b/mm/msync.c index 358d73cf7b7..07dae08cf31 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. @@ -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;