ceph_fill_trace(): don't bother with d_instantiate(dn, NULL)
... and use d_add(dn, NULL) in case we need to hash a negative unhashed rather than using d_rehash() directly. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
de4acda16e
commit
f8b31710e4
@ -1236,10 +1236,8 @@ retry_lookup:
|
|||||||
dout("d_delete %p\n", dn);
|
dout("d_delete %p\n", dn);
|
||||||
d_delete(dn);
|
d_delete(dn);
|
||||||
} else {
|
} else {
|
||||||
dout("d_instantiate %p NULL\n", dn);
|
|
||||||
d_instantiate(dn, NULL);
|
|
||||||
if (have_lease && d_unhashed(dn))
|
if (have_lease && d_unhashed(dn))
|
||||||
d_rehash(dn);
|
d_add(dn, NULL);
|
||||||
update_dentry_lease(dn, rinfo->dlease,
|
update_dentry_lease(dn, rinfo->dlease,
|
||||||
session,
|
session,
|
||||||
req->r_request_started);
|
req->r_request_started);
|
||||||
|
Loading…
Reference in New Issue
Block a user