NFS: remove jiffies field from access cache

This field hasn't been used since commit 57b691819ee2 ("NFS: Cache
access checks more aggressively").

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

authored by

NeilBrown and committed by
Trond Myklebust
03c6f7d6 779eafab

-6
-4
fs/nfs/dir.c
··· 2260 spin_lock(&inode->i_lock); 2261 retry = false; 2262 } 2263 - res->jiffies = cache->jiffies; 2264 res->cred = cache->cred; 2265 res->mask = cache->mask; 2266 list_move_tail(&cache->lru, &nfsi->access_cache_entry_lru); ··· 2295 goto out; 2296 if (nfs_check_cache_invalid(inode, NFS_INO_INVALID_ACCESS)) 2297 goto out; 2298 - res->jiffies = cache->jiffies; 2299 res->cred = cache->cred; 2300 res->mask = cache->mask; 2301 err = 0; ··· 2342 if (cache == NULL) 2343 return; 2344 RB_CLEAR_NODE(&cache->rb_node); 2345 - cache->jiffies = set->jiffies; 2346 cache->cred = get_rpccred(set->cred); 2347 cache->mask = set->mask; 2348 ··· 2429 cache.mask = NFS_MAY_LOOKUP | NFS_MAY_EXECUTE 2430 | NFS_MAY_WRITE | NFS_MAY_READ; 2431 cache.cred = cred; 2432 - cache.jiffies = jiffies; 2433 status = NFS_PROTO(inode)->access(inode, &cache); 2434 if (status != 0) { 2435 if (status == -ESTALE) {
··· 2260 spin_lock(&inode->i_lock); 2261 retry = false; 2262 } 2263 res->cred = cache->cred; 2264 res->mask = cache->mask; 2265 list_move_tail(&cache->lru, &nfsi->access_cache_entry_lru); ··· 2296 goto out; 2297 if (nfs_check_cache_invalid(inode, NFS_INO_INVALID_ACCESS)) 2298 goto out; 2299 res->cred = cache->cred; 2300 res->mask = cache->mask; 2301 err = 0; ··· 2344 if (cache == NULL) 2345 return; 2346 RB_CLEAR_NODE(&cache->rb_node); 2347 cache->cred = get_rpccred(set->cred); 2348 cache->mask = set->mask; 2349 ··· 2432 cache.mask = NFS_MAY_LOOKUP | NFS_MAY_EXECUTE 2433 | NFS_MAY_WRITE | NFS_MAY_READ; 2434 cache.cred = cred; 2435 status = NFS_PROTO(inode)->access(inode, &cache); 2436 if (status != 0) { 2437 if (status == -ESTALE) {
-1
fs/nfs/nfs4proc.c
··· 2285 mask = NFS4_ACCESS_READ; 2286 2287 cache.cred = cred; 2288 - cache.jiffies = jiffies; 2289 nfs_access_set_mask(&cache, opendata->o_res.access_result); 2290 nfs_access_add_cache(state->inode, &cache); 2291
··· 2285 mask = NFS4_ACCESS_READ; 2286 2287 cache.cred = cred; 2288 nfs_access_set_mask(&cache, opendata->o_res.access_result); 2289 nfs_access_add_cache(state->inode, &cache); 2290
-1
include/linux/nfs_fs.h
··· 49 struct nfs_access_entry { 50 struct rb_node rb_node; 51 struct list_head lru; 52 - unsigned long jiffies; 53 struct rpc_cred * cred; 54 __u32 mask; 55 struct rcu_head rcu_head;
··· 49 struct nfs_access_entry { 50 struct rb_node rb_node; 51 struct list_head lru; 52 struct rpc_cred * cred; 53 __u32 mask; 54 struct rcu_head rcu_head;