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

Method C_Client_CacheInvalidate

src/client/Client.cc:4584–4590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4582 int64_t offset, length;
4583public:
4584 C_Client_CacheInvalidate(Client *c, Inode *in, int64_t off, int64_t len) :
4585 client(c), offset(off), length(len) {
4586 if (client->use_faked_inos())
4587 ino = vinodeno_t(in->faked_ino, CEPH_NOSNAP);
4588 else
4589 ino = in->vino();
4590 }
4591 void finish(int r) override {
4592 // _async_invalidate takes the lock when it needs to, call this back from outside of lock.
4593 ceph_assert(ceph_mutex_is_not_locked_by_me(client->client_lock));

Callers

nothing calls this directly

Calls 3

use_faked_inosMethod · 0.80
vinodeno_tClass · 0.50
vinoMethod · 0.45

Tested by

no test coverage detected