linux/fs/ceph
Yan, Zheng 600d8cbcd0 ceph: clear directory's completeness when creating file
commit 0a8a70f96f upstream.

When creating a file, ceph_set_dentry_offset() puts the new dentry
at the end of directory's d_subdirs, then set the dentry's offset
based on directory's max offset. The offset does not reflect the
real postion of the dentry in directory. Later readdir reply from
MDS may change the dentry's position/offset. This inconsistency
can cause missing/duplicate entries in readdir result if readdir
is partly satisfied by dcache_readdir().

The fix is clear directory's completeness after creating/renaming
file. It prevents later readdir from using dcache_readdir().

Fixes: http://tracker.ceph.com/issues/8025
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-07 10:28:20 -07:00
..
Kconfig
Makefile
acl.c ceph: make ceph_forget_all_cached_acls() static inline 2014-02-17 12:37:12 -08:00
addr.c
cache.c
cache.h
caps.c
ceph_frag.c
debugfs.c
dir.c ceph: clear directory's completeness when creating file 2014-06-07 10:28:20 -07:00
export.c
file.c ceph: add missing init_acl() for mkdir() and atomic_open() 2014-02-17 12:37:11 -08:00
inode.c ceph: clear directory's completeness when creating file 2014-06-07 10:28:20 -07:00
ioctl.c
ioctl.h
locks.c
mds_client.c
mds_client.h
mdsmap.c
snap.c
strings.c
super.c ceph: add acl, noacl options for cephfs mount 2014-02-17 12:37:12 -08:00
super.h ceph: clear directory's completeness when creating file 2014-06-07 10:28:20 -07:00
xattr.c ceph: fix ceph_removexattr() 2014-02-17 12:37:10 -08:00