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

Method force_session_readonly

src/client/Client.cc:5144–5154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5142}
5143
5144void Client::force_session_readonly(MetaSession *s)
5145{
5146 s->readonly = true;
5147 for (xlist<Cap*>::iterator p = s->caps.begin(); !p.end(); ++p) {
5148 auto &in = (*p)->inode;
5149 if (in.caps_wanted() & CEPH_CAP_FILE_WR) {
5150 ldout(cct, 10) << __func__ << " calling signal_caps_inode" << dendl;
5151 signal_caps_inode(&in);
5152 }
5153 }
5154}
5155
5156int Client::mark_caps_flushing(Inode *in, ceph_tid_t* ptid)
5157{

Callers

nothing calls this directly

Calls 3

caps_wantedMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected