Home
last modified time | relevance | path

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

/linux-4.19.296/fs/ceph/
Ddir.c122 struct ceph_readdir_cache_control *cache_ctl) in __dcache_find_get_entry() argument
133 if (!cache_ctl->page || ptr_pgoff != page_index(cache_ctl->page)) { in __dcache_find_get_entry()
134 ceph_readdir_cache_release(cache_ctl); in __dcache_find_get_entry()
135 cache_ctl->page = find_lock_page(&dir->i_data, ptr_pgoff); in __dcache_find_get_entry()
136 if (!cache_ctl->page) { in __dcache_find_get_entry()
142 unlock_page(cache_ctl->page); in __dcache_find_get_entry()
143 cache_ctl->dentries = kmap(cache_ctl->page); in __dcache_find_get_entry()
146 cache_ctl->index = idx & idx_mask; in __dcache_find_get_entry()
153 dentry = cache_ctl->dentries[cache_ctl->index]; in __dcache_find_get_entry()
182 struct ceph_readdir_cache_control cache_ctl = {}; in __dcache_readdir() local
[all …]
Dinode.c1548 struct ceph_readdir_cache_control cache_ctl = {}; in ceph_readdir_prepopulate() local
1597 cache_ctl.index = req->r_readdir_cache_idx; in ceph_readdir_prepopulate()
1711 if (err == 0 && skipped == 0 && cache_ctl.index >= 0) { in ceph_readdir_prepopulate()
1713 &cache_ctl, req); in ceph_readdir_prepopulate()
1724 req->r_readdir_cache_idx = cache_ctl.index; in ceph_readdir_prepopulate()
1726 ceph_readdir_cache_release(&cache_ctl); in ceph_readdir_prepopulate()