summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYan, Zheng2013-11-30 05:47:41 +0100
committerYan, Zheng2014-01-21 06:29:33 +0100
commit9215aeea622fec7ca8123c6bd6f03a1753e2b0b3 (patch)
tree00c4aaae67c7891553f8331b6e0b6e54bf95d08f /fs/ceph/super.h
parentceph: handle -ESTALE reply (diff)
downloadkernel-qcow2-linux-9215aeea622fec7ca8123c6bd6f03a1753e2b0b3.tar.gz
kernel-qcow2-linux-9215aeea622fec7ca8123c6bd6f03a1753e2b0b3.tar.xz
kernel-qcow2-linux-9215aeea622fec7ca8123c6bd6f03a1753e2b0b3.zip
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>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 891cda8c72aa..a6ba32fb0d49 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -782,6 +782,7 @@ extern int ceph_add_cap(struct inode *inode,
extern void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release);
extern void ceph_put_cap(struct ceph_mds_client *mdsc,
struct ceph_cap *cap);
+extern int ceph_is_any_caps(struct inode *inode);
extern void __queue_cap_release(struct ceph_mds_session *session, u64 ino,
u64 cap_id, u32 migrate_seq, u32 issue_seq);