9p: Add fscache support to 9p
authorAbhishek Kulkarni <adkulkar@umail.iu.edu>
Wed, 23 Sep 2009 18:00:27 +0000 (13:00 -0500)
committerEric Van Hensbergen <ericvh@strongmad.austin.ibm.com>
Wed, 23 Sep 2009 18:03:46 +0000 (13:03 -0500)
commit60e78d2c993e58d890596d951fff77d5965adcd6
tree3d53ed7254c613ef8d8de36fdceda25bc493f4f7
parent637d020a02cd734bf27acfc56c6d942cddd9eb80
9p: Add fscache support to 9p

This patch adds a persistent, read-only caching facility for
9p clients using the FS-Cache caching backend.

When the fscache facility is enabled, each inode is associated
with a corresponding vcookie which is an index into the FS-Cache
indexing tree. The FS-Cache indexing tree is indexed at 3 levels:
- session object associated with each mount.
- inode/vcookie
- actual data (pages)

A cache tag is chosen randomly for each session. These tags can
be read off /sys/fs/9p/caches and can be passed as a mount-time
parameter to re-attach to the specified caching session.

Signed-off-by: Abhishek Kulkarni <adkulkar@umail.iu.edu>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
12 files changed:
fs/9p/Kconfig
fs/9p/Makefile
fs/9p/cache.c [new file with mode: 0644]
fs/9p/cache.h [new file with mode: 0644]
fs/9p/v9fs.c
fs/9p/v9fs.h
fs/9p/v9fs_vfs.h
fs/9p/vfs_addr.c
fs/9p/vfs_file.c
fs/9p/vfs_inode.c
fs/9p/vfs_super.c
include/net/9p/9p.h