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

Method put_request

src/client/Client.cc:2395–2413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2393}
2394
2395void Client::put_request(MetaRequest *request)
2396{
2397 ceph_assert(request->ref >= 1);
2398 if (request->_put()) {
2399 int op = -1;
2400 if (request->success)
2401 op = request->get_op();
2402 InodeRef other_in;
2403 request->take_other_inode(&other_in);
2404 delete request;
2405
2406 if (other_in &&
2407 (op == CEPH_MDS_OP_RMDIR ||
2408 op == CEPH_MDS_OP_RENAME ||
2409 op == CEPH_MDS_OP_RMSNAP)) {
2410 _try_to_trim_inode(other_in.get(), false);
2411 }
2412 }
2413}
2414
2415int Client::encode_inode_release(Inode *in, MetaRequest *req,
2416 mds_rank_t mds, int drop,

Callers 2

advanceMethod · 0.80
finishMethod · 0.80

Calls 4

take_other_inodeMethod · 0.80
_putMethod · 0.45
get_opMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected