Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8b31710 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent de4acda1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1236,10 +1236,8 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
				dout("d_delete %p\n", dn);
				d_delete(dn);
			} else {
				dout("d_instantiate %p NULL\n", dn);
				d_instantiate(dn, NULL);
				if (have_lease && d_unhashed(dn))
					d_rehash(dn);
					d_add(dn, NULL);
				update_dentry_lease(dn, rinfo->dlease,
						    session,
						    req->r_request_started);