Lines Matching defs:cache

10  * 28 Sep 1996	Improved directory cache --okir
18 * 6 Jun 1999 Cache readdir lookups in the page cache. -DaveM
282 * in a page cache page which kmemleak does not scan.
354 * memory use for the page cache XArray. 18 bits should allow the caching
357 * cache of ~ 33 million entries per directory.
579 /* Fill a page with xdr information before transferring to the cache page */
818 /* Perform conversion from xdr to cache array */
1009 * and locks the page to prevent removal from the page cache.
1044 * Set the cookie verifier if the page cache was empty
1064 /* Search for desc->dir_cookie from the beginning of the page cache */
1131 * If we cannot find a cookie in our cache, we suspect that this is
1135 * cache on the next call to readdir_search_pagecache();
1140 * directory in the page cache by the time we get here.
1216 last cookie cache takes care of the common case of reading the
1563 /* NFS close-to-open cache consistency validation */
1599 * period corresponding to the parent's attribute cache timeout value.
1715 * a match, then we should revalidate the directory cache.
2438 * We invalidate the attribute cache and free the inode prior to the operation
2574 * No big deal if we can't add this page to the page cache here.
2775 MODULE_PARM_DESC(nfs_access_max_cachesize, "NFS access maximum total cache length");
2788 struct nfs_access_entry *cache;
2791 cache = list_entry(head->next, struct nfs_access_entry, lru);
2792 list_del(&cache->lru);
2793 nfs_access_free_entry(cache);
2802 struct nfs_access_entry *cache;
2815 cache = list_entry(nfsi->access_cache_entry_lru.next,
2817 list_move(&cache->lru, &head);
2818 rb_erase(&cache->rb_node, &nfsi->access_cache);
2877 /* Unhook entries from the cache */
2985 struct nfs_access_entry *cache;
2993 cache = nfs_access_search_rbtree(inode, cred);
2995 if (cache == NULL)
2997 /* Found an entry, is our attribute cache valid? */
3013 if ((s64)(login_time - cache->timestamp) > 0)
3015 *mask = cache->mask;
3016 list_move_tail(&cache->lru, &nfsi->access_cache_entry_lru);
3029 /* Only check the most recently returned cache entry,
3034 struct nfs_access_entry *cache;
3042 cache = list_entry(lh, struct nfs_access_entry, lru);
3044 access_cmp(cred, cache) != 0)
3045 cache = NULL;
3046 if (cache == NULL)
3048 if ((s64)(login_time - cache->timestamp) > 0)
3052 *mask = cache->mask;
3113 struct nfs_access_entry *cache = kmalloc(sizeof(*cache), GFP_KERNEL);
3114 if (cache == NULL)
3116 RB_CLEAR_NODE(&cache->rb_node);
3117 cache->fsuid = cred->fsuid;
3118 cache->fsgid = cred->fsgid;
3119 cache->group_info = get_group_info(cred->group_info);
3120 cache->mask = set->mask;
3121 cache->timestamp = ktime_get_ns();
3128 nfs_access_add_rbtree(inode, cache, cred);
3186 struct nfs_access_entry cache;
3193 status = nfs_access_get_cached(inode, cred, &cache.mask, may_block);
3204 cache.mask = NFS_ACCESS_READ | NFS_ACCESS_MODIFY | NFS_ACCESS_EXTEND |
3207 cache.mask |= NFS_ACCESS_DELETE | NFS_ACCESS_LOOKUP;
3209 cache.mask |= NFS_ACCESS_EXECUTE;
3210 status = NFS_PROTO(inode)->access(inode, &cache, cred);
3220 nfs_access_add_cache(inode, &cache, cred);
3222 cache_mask = nfs_access_calc_mask(cache.mask, inode->i_mode);