]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
NFS: Add FS-Cache option bit and debug bit
authorDavid Howells <dhowells@redhat.com>
Fri, 3 Apr 2009 15:42:42 +0000 (16:42 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 3 Apr 2009 15:42:42 +0000 (16:42 +0100)
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>
include/linux/nfs_fs.h
include/linux/nfs_fs_sb.h

index bde2557c2a9cec10613328369aebe64bbf3150c4..fd3e7f9c6fd3a50c62bb125dd4106e758d888b95 100644 (file)
@@ -583,6 +583,7 @@ extern void * nfs_root_data(void);
 #define NFSDBG_CALLBACK                0x0100
 #define NFSDBG_CLIENT          0x0200
 #define NFSDBG_MOUNT           0x0400
+#define NFSDBG_FSCACHE         0x0800
 #define NFSDBG_ALL             0xFFFF
 
 #ifdef __KERNEL__
index 29b1e40dce99cc3f76fea6b55904546af753725e..a749f8564aa619196ffe7339ab9002f58469e34d 100644 (file)
@@ -96,6 +96,8 @@ struct nfs_server {
        unsigned int            acdirmin;
        unsigned int            acdirmax;
        unsigned int            namelen;
+       unsigned int            options;        /* extra options enabled by mount */
+#define NFS_OPTION_FSCACHE     0x00000001      /* - local caching enabled */
 
        struct nfs_fsid         fsid;
        __u64                   maxfilesize;    /* maximum file size */