ceph: improving efficiency of syncfs
authorChengguang Xu <cgxu519@icloud.com>
Tue, 30 Jan 2018 02:02:30 +0000 (10:02 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 30 Jan 2018 20:10:15 +0000 (21:10 +0100)
commit16515a6d54183349b858b9c05e483afc55fa7948
tree97269e7e300a465eadae920907e5a8f5758315d8
parentaffff07739392920d3d2095212c72af220481b95
ceph: improving efficiency of syncfs

write_inode() could be called variety of reasons, in the case of syncfs(2)
there is no need to wait for flush getting completed in write_inode(),
->sync_fs is for guaranteeing flush completion for all inodes at that point.

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c