Lines Matching defs:cache

10  * 28 Sep 1996	Improved directory cache --okir
18 * 6 Jun 1999 Cache readdir lookups in the page cache. -DaveM
206 * in a page cache page which kmemleak does not scan.
366 /* Fill a page with xdr information before transferring to the cache page */
468 * cache flush.
559 /* Perform conversion from xdr to cache array */
703 * Now we cache directories properly, by converting xdr information
705 * fewer cache pages, since we can store more information on each page.
748 * and locks the page to prevent removal from the page cache.
777 /* Search for desc->dir_cookie from the beginning of the page cache */
837 * If we cannot find a cookie in our cache, we suspect that this is
841 * cache on the next call to readdir_search_pagecache();
846 * directory in the page cache by the time we get here.
886 last cookie cache takes care of the common case of reading the
1185 /* NFS close-to-open cache consistency validation */
1218 * period corresponding to the parent's attribute cache timeout value.
1325 /* set a readdirplus hint that we had a cache miss */
1335 * a match, then we should revalidate the directory cache.
1519 /* drop any readdir cache as it could easily be old */
2032 * We invalidate the attribute cache and free the inode prior to the operation
2155 * No big deal if we can't add this page to the page cache here.
2333 MODULE_PARM_DESC(nfs_access_max_cachesize, "NFS access maximum total cache length");
2346 struct nfs_access_entry *cache;
2349 cache = list_entry(head->next, struct nfs_access_entry, lru);
2350 list_del(&cache->lru);
2351 nfs_access_free_entry(cache);
2360 struct nfs_access_entry *cache;
2373 cache = list_entry(nfsi->access_cache_entry_lru.next,
2375 list_move(&cache->lru, &head);
2376 rb_erase(&cache->rb_node, &nfsi->access_cache);
2435 /* Unhook entries from the cache */
2485 struct nfs_access_entry *cache;
2493 cache = nfs_access_search_rbtree(inode, cred);
2495 if (cache == NULL)
2497 /* Found an entry, is our attribute cache valid? */
2512 *mask = cache->mask;
2513 list_move_tail(&cache->lru, &nfsi->access_cache_entry_lru);
2526 /* Only check the most recently returned cache entry,
2530 struct nfs_access_entry *cache;
2538 cache = list_entry(lh, struct nfs_access_entry, lru);
2540 cred_fscmp(cred, cache->cred) != 0)
2541 cache = NULL;
2542 if (cache == NULL)
2546 *mask = cache->mask;
2604 struct nfs_access_entry *cache = kmalloc(sizeof(*cache), GFP_KERNEL);
2605 if (cache == NULL)
2607 RB_CLEAR_NODE(&cache->rb_node);
2608 cache->cred = get_cred(set->cred);
2609 cache->mask = set->mask;
2616 nfs_access_add_rbtree(inode, cache);
2674 struct nfs_access_entry cache;
2681 status = nfs_access_get_cached(inode, cred, &cache.mask, may_block);
2692 cache.mask = NFS_ACCESS_READ | NFS_ACCESS_MODIFY | NFS_ACCESS_EXTEND;
2694 cache.mask |= NFS_ACCESS_XAREAD | NFS_ACCESS_XAWRITE |
2698 cache.mask |= NFS_ACCESS_DELETE | NFS_ACCESS_LOOKUP;
2700 cache.mask |= NFS_ACCESS_EXECUTE;
2701 cache.cred = cred;
2702 status = NFS_PROTO(inode)->access(inode, &cache);
2712 nfs_access_add_cache(inode, &cache);
2714 cache_mask = nfs_access_calc_mask(cache.mask, inode->i_mode);