summaryrefslogtreecommitdiff
path: root/net/ceph/auth_x.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2014-10-22 05:09:56 +0400
committerIlya Dryomov <idryomov@redhat.com>2014-12-17 20:09:50 +0300
commit70db4f3629b3476cf506be869ef9d15688d2d44a (patch)
tree1a15d801442d91ec3ea98a84eedc03d61ee3127f /net/ceph/auth_x.c
parent4965fc38c460b274b2a1789e1165a25fb0409d7e (diff)
downloadlinux-70db4f3629b3476cf506be869ef9d15688d2d44a.tar.xz
ceph: introduce a new inode flag indicating if cached dentries are ordered
After creating/deleting/renaming file, offsets of sibling dentries may change. So we can not use cached dentries to satisfy readdir. But we can still use the cached dentries to conclude -ENOENT for lookup. This patch introduces a new inode flag indicating if child dentries are ordered. The flag is set at the same time marking a directory complete. After creating/deleting/renaming file, we clear the flag on directory inode. This prevents ceph_readdir() from using cached dentries to satisfy readdir syscall. Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'net/ceph/auth_x.c')
0 files changed, 0 insertions, 0 deletions