out << " parent=" << *i;
++i;
}
- out << ")";
+ out << &in << ")";
return out;
}
void Client::put_inode(Inode *in, int n)
{
- //cout << "put_inode on " << in << " " << in->ino << endl;
+ ldout(cct, 10) << "put_inode on " << *in << dendl;
in->put(n);
if (in->ref == 0) {
// release any caps
remove_all_caps(in);
- //cout << "put_inode deleting " << in << " " << in->ino << std::endl;
+ ldout(cct, 10) << "put_inode deleting " << *in << dendl;
objectcacher->release_set(&in->oset);
if (in->snapdir_parent)
put_inode(in->snapdir_parent);
inode_map.erase(in->vino());
in->cap_item.remove_myself();
in->snaprealm_item.remove_myself();
- if (in == root) root = 0;
+ if (in == root)
+ root = 0;
delete in;
}
}
void get() {
ref++;
- ldout(cct, 15) << "inode.get on " << this << " " << hex << ino << dec << " now " << ref << dendl;
+ ldout(cct, 15) << "inode.get on " << this << " " << ino << '.' << snapid
+ << " now " << ref << dendl;
}
void put(int n=1) {
ref -= n;
- ldout(cct, 15) << "inode.put on " << this << " " << hex << ino << dec << " now " << ref << dendl;
+ ldout(cct, 15) << "inode.put on " << this << " " << ino << '.' << snapid
+ << " now " << ref << dendl;
assert(ref >= 0);
}