*target = dn->inode;
// touch this mds's dir cap too, even though we don't _explicitly_ use it here, to
// make trim_caps() behave.
- try_touch_cap(dir, dn->lease_mds);
+ dir->try_touch_cap(dn->lease_mds);
touch_dn(dn);
goto done;
}
// move to back of LRU
cap->session->caps.push_back(&cap->cap_item);
}
- void try_touch_cap(Inode *inode, int mds) {
+ void try_touch_cap(int mds) {
if (caps.count(mds))
- touch_cap[mds];
+ touch_cap(caps[mds]);
}
bool caps_issued_mask(unsigned mask) {
int c = exporting_issued | snap_caps;