]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/ceph/caps.c
ceph: check inode caps in ceph_d_revalidate
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 30 Nov 2013 04:47:41 +0000 (12:47 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 21 Jan 2014 05:29:33 +0000 (13:29 +0800)
commit9215aeea622fec7ca8123c6bd6f03a1753e2b0b3
tree00c4aaae67c7891553f8331b6e0b6e54bf95d08f
parentca18bede048e95a749d13410ce1da4ad0ffa7938
ceph: check inode caps in ceph_d_revalidate

Some inodes in readdir reply may have no caps. Getattr mds request
for these inodes can return -ESTALE. The fix is consider dentry that
links to inode with no caps as invalid. Invalid dentry causes a
lookup request to send to the mds, the MDS will send caps back.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/caps.c
fs/ceph/dir.c
fs/ceph/super.h