Whamcloud - gitweb
LU-5912 libcfs: use vfs api for fsync calls
[fs/lustre-release.git] / libcfs / libcfs / tracefile.c
index 6090fdf..c544e43 100644 (file)
@@ -705,7 +705,7 @@ int cfs_tracefile_dump_all_pages(char *filename)
                 cfs_tage_free(tage);
         }
        MMSPACE_CLOSE;
-       rc = filp_fsync(filp, 0, LLONG_MAX);
+       rc = ll_vfs_fsync_range(filp, 0, LLONG_MAX, 1);
        if (rc)
                printk(KERN_ERR "sync returns %d\n", rc);
 close: