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

Method unset_deleg

src/client/Inode.cc:816–827  ·  view source on GitHub ↗

* unset_deleg - remove a delegation that was previously set * @fh: file handle to clear delegation of * * Unlink delegation from the Inode (if there is one), put caps and free it. */

Source from the content-addressed store, hash-verified

814 * Unlink delegation from the Inode (if there is one), put caps and free it.
815 */
816void Inode::unset_deleg(Fh *fh)
817{
818 for (list<Delegation>::iterator d = delegations.begin();
819 d != delegations.end(); ++d) {
820 Delegation& deleg = *d;
821 if (deleg.get_fh() == fh) {
822 delegations.erase(d);
823 client->signal_cond_list(waitfor_deleg);
824 break;
825 }
826 }
827}
828
829/**
830* mark_caps_dirty - mark some caps dirty

Callers 2

_release_fhMethod · 0.80
ll_delegationMethod · 0.80

Calls 5

signal_cond_listMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
get_fhMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected