diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-25 17:28:18 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-23 05:24:29 +0200 |
commit | cfcea3e8c66c2dcde98d5c2693d4bff50b5cac97 (patch) | |
tree | ee7b995a48c43de7355fa33079ee7aaad020d6f3 /fs/nfs/inode.c | |
parent | NFS: Add a new ACCESS rpc call cache to the linux nfs client (diff) | |
download | linux-cfcea3e8c66c2dcde98d5c2693d4bff50b5cac97.tar.xz linux-cfcea3e8c66c2dcde98d5c2693d4bff50b5cac97.zip |
NFS: Add a global LRU list for the ACCESS cache
...in order to allow the addition of a memory shrinker.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index b94ab060bb1e..6ed018c9aad2 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -1104,6 +1104,8 @@ static void init_once(void * foo, kmem_cache_t * cachep, unsigned long flags) INIT_LIST_HEAD(&nfsi->dirty); INIT_LIST_HEAD(&nfsi->commit); INIT_LIST_HEAD(&nfsi->open_files); + INIT_LIST_HEAD(&nfsi->access_cache_entry_lru); + INIT_LIST_HEAD(&nfsi->access_cache_inode_lru); INIT_RADIX_TREE(&nfsi->nfs_page_tree, GFP_ATOMIC); atomic_set(&nfsi->data_updates, 0); nfsi->ndirty = 0; |