Searched refs:cache_ctl (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/fs/ceph/
H A Ddir.c152 struct ceph_readdir_cache_control cache_ctl = {}; __dcache_readdir() local
158 cache_ctl.index = fpos_off(ctx->pos) - 2; __dcache_readdir()
159 BUG_ON(cache_ctl.index < 0); __dcache_readdir()
160 ptr_pos = cache_ctl.index * sizeof(struct dentry *); __dcache_readdir()
175 if (!cache_ctl.page || pgoff != page_index(cache_ctl.page)) { __dcache_readdir()
176 ceph_readdir_cache_release(&cache_ctl); __dcache_readdir()
177 cache_ctl.page = find_lock_page(&dir->i_data, pgoff); __dcache_readdir()
178 if (!cache_ctl.page) { __dcache_readdir()
184 unlock_page(cache_ctl.page); __dcache_readdir()
185 cache_ctl.dentries = kmap(cache_ctl.page); __dcache_readdir()
194 dentry = cache_ctl.dentries[cache_ctl.index % nsize]; __dcache_readdir()
238 cache_ctl.index++; __dcache_readdir()
241 ceph_readdir_cache_release(&cache_ctl); __dcache_readdir()
H A Dinode.c1397 struct ceph_readdir_cache_control cache_ctl = {}; ceph_readdir_prepopulate() local
1434 cache_ctl.index = req->r_readdir_cache_idx; ceph_readdir_prepopulate()
1521 if (err == 0 && cache_ctl.index >= 0) { ceph_readdir_prepopulate()
1523 &cache_ctl, req); ceph_readdir_prepopulate()
1534 req->r_readdir_cache_idx = cache_ctl.index; ceph_readdir_prepopulate()
1536 ceph_readdir_cache_release(&cache_ctl); ceph_readdir_prepopulate()

Completed in 65 milliseconds