summaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorTrond Myklebust2012-05-16 19:21:30 +0200
committerTrond Myklebust2012-05-16 19:24:20 +0200
commit39ffb9218e41b1ef4920432776791f5e9ed2eff3 (patch)
tree0b1b02a1b252b587b78628a6f0f412e80dec0ace /fs/nfs/super.c
parentrpc_pipefs: clear write bit from top level rpc_pipefs directory (diff)
downloadkernel-qcow2-linux-39ffb9218e41b1ef4920432776791f5e9ed2eff3.tar.gz
kernel-qcow2-linux-39ffb9218e41b1ef4920432776791f5e9ed2eff3.tar.xz
kernel-qcow2-linux-39ffb9218e41b1ef4920432776791f5e9ed2eff3.zip
NFS: Fix a compile issue when CONFIG_NFS_FSCACHE was undefined
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index c3ae81918550..a973eb101a92 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2346,6 +2346,7 @@ static int nfs_compare_super(struct super_block *sb, void *data)
return nfs_compare_mount_options(sb, server, mntflags);
}
+#ifdef CONFIG_NFS_FSCACHE
static void nfs_get_cache_cookie(struct super_block *sb,
struct nfs_parsed_mount_data *parsed,
struct nfs_clone_mount *cloned)
@@ -2366,6 +2367,13 @@ static void nfs_get_cache_cookie(struct super_block *sb,
nfs_fscache_get_super_cookie(sb, uniq, ulen);
}
+#else
+static void nfs_get_cache_cookie(struct super_block *sb,
+ struct nfs_parsed_mount_data *parsed,
+ struct nfs_clone_mount *cloned)
+{
+}
+#endif
static int nfs_bdi_register(struct nfs_server *server)
{