|
@@ -1244,11 +1244,12 @@ static int ceph_d_revalidate(struct dentry *dentry, unsigned int flags)
|
|
return -ECHILD;
|
|
return -ECHILD;
|
|
|
|
|
|
op = ceph_snap(dir) == CEPH_SNAPDIR ?
|
|
op = ceph_snap(dir) == CEPH_SNAPDIR ?
|
|
- CEPH_MDS_OP_LOOKUPSNAP : CEPH_MDS_OP_GETATTR;
|
|
|
|
|
|
+ CEPH_MDS_OP_LOOKUPSNAP : CEPH_MDS_OP_LOOKUP;
|
|
req = ceph_mdsc_create_request(mdsc, op, USE_ANY_MDS);
|
|
req = ceph_mdsc_create_request(mdsc, op, USE_ANY_MDS);
|
|
if (!IS_ERR(req)) {
|
|
if (!IS_ERR(req)) {
|
|
req->r_dentry = dget(dentry);
|
|
req->r_dentry = dget(dentry);
|
|
- req->r_num_caps = op == CEPH_MDS_OP_GETATTR ? 1 : 2;
|
|
|
|
|
|
+ req->r_num_caps = 2;
|
|
|
|
+ req->r_parent = dir;
|
|
|
|
|
|
mask = CEPH_STAT_CAP_INODE | CEPH_CAP_AUTH_SHARED;
|
|
mask = CEPH_STAT_CAP_INODE | CEPH_CAP_AUTH_SHARED;
|
|
if (ceph_security_xattr_wanted(dir))
|
|
if (ceph_security_xattr_wanted(dir))
|