• Jeff Layton's avatar
    ceph: do a LOOKUP in d_revalidate instead of GETATTR · 5eb9f604
    Jeff Layton authored
    In commit c3f4688a (ceph: don't set req->r_locked_dir in
    ceph_d_revalidate), we changed the code to do a GETATTR instead of a
    LOOKUP as the parent info isn't strictly necessary to revalidate the
    dentry. What we missed there though is that in order to update the lease
    on the dentry after revalidating it, we _do_ need parent info.
    
    Change ceph_d_revalidate back to doing a LOOKUP instead of a GETATTR so
    that we can get the parent info in order to update the lease from
    ceph_fill_trace. Note that we set req->r_parent here, but we cannot set
    the CEPH_MDS_R_PARENT_LOCKED flag as we can't guarantee that it is.
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Reviewed-by: default avatarYan, Zheng <zyan@redhat.com>
    Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
    5eb9f604
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
acl.c Loading commit data...
addr.c Loading commit data...
cache.c Loading commit data...
cache.h Loading commit data...
caps.c Loading commit data...
ceph_frag.c Loading commit data...
debugfs.c Loading commit data...
dir.c Loading commit data...
export.c Loading commit data...
file.c Loading commit data...
inode.c Loading commit data...
ioctl.c Loading commit data...
ioctl.h Loading commit data...
locks.c Loading commit data...
mds_client.c Loading commit data...
mds_client.h Loading commit data...
mdsmap.c Loading commit data...
snap.c Loading commit data...
strings.c Loading commit data...
super.c Loading commit data...
super.h Loading commit data...
xattr.c Loading commit data...