ceph: properly mark empty directory as complete
authorYan, Zheng <zyan@redhat.com>
Mon, 19 Jan 2015 05:12:24 +0000 (13:12 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 19 Feb 2015 10:31:39 +0000 (13:31 +0300)
commit2f92b3d0a9a583a5a4dd786a84fc42e6f1aa40fa
tree3e53915348d4181da3b54982ec6fceb2fcbdbd3f
parenta6a5ce4f0df9146ba8cb61121b80aa191fbb1f04
ceph: properly mark empty directory as complete

ceph_add_cap() calls __check_cap_issue(), which clears directory
inode' complete flag. so we should set the complete flag for empty
directory should be set after calling ceph_add_cap().

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