diff options
author | David Howells <dhowells@redhat.com> | 2009-04-03 11:42:42 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2009-04-03 11:42:42 -0400 |
commit | c6a6f19e22da0a3d74214ee010224c9a30a794c1 (patch) | |
tree | e10e6bf056e9a7f276e98bd55d0d04b491844807 /include | |
parent | 6b9b3514aa188183e74049853be43380ad49314f (diff) |
NFS: Add FS-Cache option bit and debug bit
Add FS-Cache option bit to nfs_server struct. This is set to indicate local
on-disk caching is enabled for a particular superblock.
Also add debug bit for local caching operations.
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 'include')
-rw-r--r-- | include/linux/nfs_fs.h | 1 | ||||
-rw-r--r-- | include/linux/nfs_fs_sb.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index bde2557c2a9c..fd3e7f9c6fd3 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -583,6 +583,7 @@ extern void * nfs_root_data(void); | |||
583 | #define NFSDBG_CALLBACK 0x0100 | 583 | #define NFSDBG_CALLBACK 0x0100 |
584 | #define NFSDBG_CLIENT 0x0200 | 584 | #define NFSDBG_CLIENT 0x0200 |
585 | #define NFSDBG_MOUNT 0x0400 | 585 | #define NFSDBG_MOUNT 0x0400 |
586 | #define NFSDBG_FSCACHE 0x0800 | ||
586 | #define NFSDBG_ALL 0xFFFF | 587 | #define NFSDBG_ALL 0xFFFF |
587 | 588 | ||
588 | #ifdef __KERNEL__ | 589 | #ifdef __KERNEL__ |
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index 29b1e40dce99..a749f8564aa6 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
@@ -96,6 +96,8 @@ struct nfs_server { | |||
96 | unsigned int acdirmin; | 96 | unsigned int acdirmin; |
97 | unsigned int acdirmax; | 97 | unsigned int acdirmax; |
98 | unsigned int namelen; | 98 | unsigned int namelen; |
99 | unsigned int options; /* extra options enabled by mount */ | ||
100 | #define NFS_OPTION_FSCACHE 0x00000001 /* - local caching enabled */ | ||
99 | 101 | ||
100 | struct nfs_fsid fsid; | 102 | struct nfs_fsid fsid; |
101 | __u64 maxfilesize; /* maximum file size */ | 103 | __u64 maxfilesize; /* maximum file size */ |