ceph: fix directory fsync
authorYan, Zheng <zyan@redhat.com>
Wed, 27 May 2015 03:19:34 +0000 (11:19 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 08:49:30 +0000 (11:49 +0300)
commitda819c8150c5b6e6a6a21ee41135b88f6cd18c3e
tree83937b095cd94cd7f7da025db3360f9ce5a7c0e8
parent89b52fe14de4d703ba837a7418bb4cd286dcc87f
ceph: fix directory fsync

fsync() on directory should flush dirty caps and wait for any
uncommitted directory opertions to commit. But ceph_dir_fsync()
only waits for uncommitted directory opertions.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/caps.c
fs/ceph/dir.c