diff options
author | David Howells <dhowells@redhat.com> | 2009-04-03 16:42:43 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2009-04-03 16:42:43 +0100 |
commit | 10329a5d48f5abc14a37d30b706e330f8598297a (patch) | |
tree | 2423424d5faa9a9c3933bd1041d9f28f210aa1f2 /fs/nfs/fscache.c | |
parent | 08734048b380103f0412f58b84c2f76a2c8b599f (diff) | |
download | op-kernel-dev-10329a5d48f5abc14a37d30b706e330f8598297a.zip op-kernel-dev-10329a5d48f5abc14a37d30b706e330f8598297a.tar.gz |
NFS: Define and create inode-level cache objects
Define and create inode-level cache data storage objects (as managed by
nfs_inode structs).
Each inode-level object is created in a superblock-level index object and is
itself a data storage object into which pages from the inode are stored.
The inode object key is the NFS file handle for the inode.
The inode object is given coherency data to carry in the auxiliary data
permitted by the cache. This is a sequence made up of:
(1) i_mtime from the NFS inode.
(2) i_ctime from the NFS inode.
(3) i_size from the NFS inode.
(4) change_attr from the NFSv4 attribute data.
As the cache is a persistent cache, the auxiliary data is checked when a new
NFS in-memory inode is set up that matches an already existing data storage
object in the cache. If the coherency data is the same, the on-disk object is
retained and used; if not, it is scrapped and a new one created.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Tested-by: Daire Byrne <Daire.Byrne@framestore.com>
Diffstat (limited to 'fs/nfs/fscache.c')
0 files changed, 0 insertions, 0 deletions