]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging/lustre/libcfs: remove filp_fsync
authorPeng Tao <bergwolf@gmail.com>
Thu, 21 Nov 2013 14:28:23 +0000 (22:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 20:35:03 +0000 (12:35 -0800)
we can just call generic vfs_fsync().

Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/linux/linux-fs.h
drivers/staging/lustre/lustre/libcfs/tracefile.c

index 8fabe4b2f306a075465a7c120a6ff0d7b9ed38ad..e523004078df92ea02451d304293ca0e044eb704 100644 (file)
 #include <linux/backing-dev.h>
 #include <linux/posix_acl_xattr.h>
 
-# define do_fsync(fp, flag)                            \
-       ((fp)->f_op->fsync(fp, 0, LLONG_MAX, flag))
-
 #define filp_read(fp, buf, size, pos)                  \
        ((fp)->f_op->read((fp), (buf), (size), pos))
 
 #define filp_write(fp, buf, size, pos)                 \
        ((fp)->f_op->write((fp), (buf), (size), pos))
 
-#define filp_fsync(fp)                                 \
-       do_fsync(fp, 1)
-
 #define flock_type(fl)                 ((fl)->fl_type)
 #define flock_set_type(fl, type)       do { (fl)->fl_type = (type); } while (0)
 #define flock_pid(fl)                  ((fl)->fl_pid)
index 0ce4aaca27b47f3d41fdf579091595d122f1a4ea..4c3dad6fcf490c452b6d63c584f3c1a1efa546eb 100644 (file)
@@ -721,7 +721,7 @@ int cfs_tracefile_dump_all_pages(char *filename)
                cfs_tage_free(tage);
        }
        MMSPACE_CLOSE;
-       rc = filp_fsync(filp);
+       rc = vfs_fsync(filp, 1);
        if (rc)
                printk(KERN_ERR "sync returns %d\n", rc);
 close: