MCPcopy Create free account
hub / github.com/ceph/ceph / ~Inode

Method ~Inode

src/client/Inode.cc:21–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using std::string;
20
21Inode::~Inode()
22{
23 delay_cap_item.remove_myself();
24 dirty_cap_item.remove_myself();
25 snaprealm_item.remove_myself();
26
27 if (snapdir_parent) {
28 snapdir_parent->flags &= ~I_SNAPDIR_OPEN;
29 snapdir_parent.reset();
30 }
31
32 if (!oset.objects.empty()) {
33 lsubdout(client->cct, client, 0) << __func__ << ": leftover objects on inode 0x"
34 << std::hex << ino << std::dec << dendl;
35 ceph_assert(oset.objects.empty());
36 }
37
38 if (!delegations.empty()) {
39 lsubdout(client->cct, client, 0) << __func__ << ": leftover delegations on inode 0x"
40 << std::hex << ino << std::dec << dendl;
41 ceph_assert(delegations.empty());
42 }
43}
44
45void Inode::print(std::ostream& out) const
46{

Callers

nothing calls this directly

Calls 3

remove_myselfMethod · 0.45
resetMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected