diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-16 13:21:30 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-16 13:24:20 -0400 |
commit | 39ffb9218e41b1ef4920432776791f5e9ed2eff3 (patch) | |
tree | 0b1b02a1b252b587b78628a6f0f412e80dec0ace /fs | |
parent | 7e450b4e47d14429d0cc17cf4ce389fc027937be (diff) |
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')
-rw-r--r-- | fs/nfs/fscache.h | 6 | ||||
-rw-r--r-- | fs/nfs/super.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/fs/nfs/fscache.h b/fs/nfs/fscache.h index 2a08b9130ec1..c5b11b53ff33 100644 --- a/fs/nfs/fscache.h +++ b/fs/nfs/fscache.h | |||
@@ -170,12 +170,6 @@ static inline void nfs_fscache_unregister(void) {} | |||
170 | static inline void nfs_fscache_get_client_cookie(struct nfs_client *clp) {} | 170 | static inline void nfs_fscache_get_client_cookie(struct nfs_client *clp) {} |
171 | static inline void nfs_fscache_release_client_cookie(struct nfs_client *clp) {} | 171 | static inline void nfs_fscache_release_client_cookie(struct nfs_client *clp) {} |
172 | 172 | ||
173 | static inline void nfs_fscache_get_super_cookie( | ||
174 | struct super_block *sb, | ||
175 | const char *uniq, | ||
176 | struct nfs_clone_mount *mntdata) | ||
177 | { | ||
178 | } | ||
179 | static inline void nfs_fscache_release_super_cookie(struct super_block *sb) {} | 173 | static inline void nfs_fscache_release_super_cookie(struct super_block *sb) {} |
180 | 174 | ||
181 | static inline void nfs_fscache_init_inode_cookie(struct inode *inode) {} | 175 | static inline void nfs_fscache_init_inode_cookie(struct inode *inode) {} |
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) | |||
2346 | return nfs_compare_mount_options(sb, server, mntflags); | 2346 | return nfs_compare_mount_options(sb, server, mntflags); |
2347 | } | 2347 | } |
2348 | 2348 | ||
2349 | #ifdef CONFIG_NFS_FSCACHE | ||
2349 | static void nfs_get_cache_cookie(struct super_block *sb, | 2350 | static void nfs_get_cache_cookie(struct super_block *sb, |
2350 | struct nfs_parsed_mount_data *parsed, | 2351 | struct nfs_parsed_mount_data *parsed, |
2351 | struct nfs_clone_mount *cloned) | 2352 | struct nfs_clone_mount *cloned) |
@@ -2366,6 +2367,13 @@ static void nfs_get_cache_cookie(struct super_block *sb, | |||
2366 | 2367 | ||
2367 | nfs_fscache_get_super_cookie(sb, uniq, ulen); | 2368 | nfs_fscache_get_super_cookie(sb, uniq, ulen); |
2368 | } | 2369 | } |
2370 | #else | ||
2371 | static void nfs_get_cache_cookie(struct super_block *sb, | ||
2372 | struct nfs_parsed_mount_data *parsed, | ||
2373 | struct nfs_clone_mount *cloned) | ||
2374 | { | ||
2375 | } | ||
2376 | #endif | ||
2369 | 2377 | ||
2370 | static int nfs_bdi_register(struct nfs_server *server) | 2378 | static int nfs_bdi_register(struct nfs_server *server) |
2371 | { | 2379 | { |