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

Method get_cap_ref

src/client/Client.cc:3849–3862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3847 */
3848
3849void Client::get_cap_ref(Inode *in, int cap)
3850{
3851 if ((cap & CEPH_CAP_FILE_BUFFER) &&
3852 in->cap_refs[CEPH_CAP_FILE_BUFFER] == 0) {
3853 ldout(cct, 5) << __func__ << " got first FILE_BUFFER ref on " << *in << dendl;
3854 in->iget();
3855 }
3856 if ((cap & CEPH_CAP_FILE_CACHE) &&
3857 in->cap_refs[CEPH_CAP_FILE_CACHE] == 0) {
3858 ldout(cct, 5) << __func__ << " got first FILE_CACHE ref on " << *in << dendl;
3859 in->iget();
3860 }
3861 in->get_cap_ref(cap);
3862}
3863
3864void Client::put_cap_ref(Inode *in, int cap)
3865{

Callers 2

get_capsMethod · 0.45
do_writeMethod · 0.45

Calls 1

igetMethod · 0.45

Tested by

no test coverage detected