Lines Matching refs:cache_ctl
129 struct ceph_readdir_cache_control *cache_ctl) in __dcache_find_get_entry() argument
140 if (!cache_ctl->page || ptr_pgoff != page_index(cache_ctl->page)) { in __dcache_find_get_entry()
141 ceph_readdir_cache_release(cache_ctl); in __dcache_find_get_entry()
142 cache_ctl->page = find_lock_page(&dir->i_data, ptr_pgoff); in __dcache_find_get_entry()
143 if (!cache_ctl->page) { in __dcache_find_get_entry()
149 unlock_page(cache_ctl->page); in __dcache_find_get_entry()
150 cache_ctl->dentries = kmap(cache_ctl->page); in __dcache_find_get_entry()
153 cache_ctl->index = idx & idx_mask; in __dcache_find_get_entry()
160 dentry = cache_ctl->dentries[cache_ctl->index]; in __dcache_find_get_entry()
189 struct ceph_readdir_cache_control cache_ctl = {}; in __dcache_readdir() local
201 &cache_ctl); in __dcache_readdir()
229 dentry = __dcache_find_get_entry(parent, idx++, &cache_ctl); in __dcache_readdir()
277 ceph_readdir_cache_release(&cache_ctl); in __dcache_readdir()