From: Jianpeng Ma Date: Wed, 7 Jan 2015 07:28:37 +0000 (+0800) Subject: common: Don't call ioctl(BTRFS_IOC_SYNC) in sync_filesystem. X-Git-Tag: v0.92~25^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=397b261630dccc656f6eca509f4c70173c8d8d8f;p=ceph.git common: Don't call ioctl(BTRFS_IOC_SYNC) in sync_filesystem. 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 --- diff --git a/src/common/sync_filesystem.h b/src/common/sync_filesystem.h index 49283b3e0aef..b7eaea71e0ed 100644 --- a/src/common/sync_filesystem.h +++ b/src/common/sync_filesystem.h @@ -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; }