MCPcopy Create free account
hub / github.com/ceph/ceph / link

Method link

src/client/Dentry.h:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 delete this;
43 }
44 void link(InodeRef in) {
45 inode = in;
46 inode->dentries.push_back(&inode_xlist_link);
47 if (inode->is_dir()) {
48 if (inode->dir)
49 get(); // dir -> dn pin
50 if (inode->ll_ref)
51 get(); // ll_ref -> dn pin
52 }
53 dir->num_null_dentries--;
54 }
55 void unlink(void) {
56 if (inode->is_dir()) {
57 if (inode->dir)

Callers

nothing calls this directly

Calls 3

getFunction · 0.50
push_backMethod · 0.45
is_dirMethod · 0.45

Tested by

no test coverage detected