mdr->apply();
+ MDRequestRef null_ref;
if (inc)
- mds->mdcache->send_dentry_link(dn);
- else {
- MDRequestRef null_ref;
+ mds->mdcache->send_dentry_link(dn, null_ref);
+ else
mds->mdcache->send_dentry_unlink(dn, NULL, null_ref);
- }
- // commit anchor update?
- if (mdr->more()->dst_reanchor_atid)
- mds->anchorclient->commit(mdr->more()->dst_reanchor_atid, mdr->ls);
-
// bump target popularity
mds->balancer->hit_inode(mdr->now, targeti, META_POP_IWR);
mds->balancer->hit_dir(mdr->now, dn->get_dir(), META_POP_IWR);