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

Method get_open_ref

src/client/Inode.cc:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void Inode::get_open_ref(int mode)
165{
166 client->inc_opened_files();
167 if (open_by_mode[mode] == 0) {
168 client->inc_opened_inodes();
169 }
170 open_by_mode[mode]++;
171 break_deleg(!(mode & CEPH_FILE_MODE_WR));
172}
173
174bool Inode::put_open_ref(int mode)
175{

Callers 3

_openMethod · 0.80
_lazyioMethod · 0.80
_createMethod · 0.80

Calls 2

inc_opened_filesMethod · 0.80
inc_opened_inodesMethod · 0.80

Tested by

no test coverage detected