]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: Don't call ioctl(BTRFS_IOC_SYNC) in sync_filesystem.
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 7 Jan 2015 07:28:37 +0000 (15:28 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 7 Jan 2015 07:28:37 +0000 (15:28 +0800)
From the manual of syncfs, it first appeared in Linux 2.6.39. At this
point, btrfs didn't as a stable production. So remove this.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/sync_filesystem.h

index 49283b3e0aefa131df87bcdb1841e91d7ee5556c..b7eaea71e0ed5e8b9a5a4bfe2c415391eff3d6fa 100644 (file)
@@ -48,11 +48,6 @@ inline int sync_filesystem(int fd)
     return -errno;
 #endif
 
-#ifdef BTRFS_IOC_SYNC
-  if (::ioctl(fd, BTRFS_IOC_SYNC) == 0)
-    return 0;
-#endif
-
   sync();
   return 0;
 }