aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/fscache.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/fscache.h')
-rw-r--r--fs/cifs/fscache.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/cifs/fscache.h b/fs/cifs/fscache.h
index 14dae1975d78..8972306c58a5 100644
--- a/fs/cifs/fscache.h
+++ b/fs/cifs/fscache.h
@@ -23,17 +23,31 @@
23 23
24#include <linux/fscache.h> 24#include <linux/fscache.h>
25 25
26#include "cifsglob.h"
27
26#ifdef CONFIG_CIFS_FSCACHE 28#ifdef CONFIG_CIFS_FSCACHE
27 29
28extern struct fscache_netfs cifs_fscache_netfs; 30extern struct fscache_netfs cifs_fscache_netfs;
31extern const struct fscache_cookie_def cifs_fscache_server_index_def;
29 32
30extern int cifs_fscache_register(void); 33extern int cifs_fscache_register(void);
31extern void cifs_fscache_unregister(void); 34extern void cifs_fscache_unregister(void);
32 35
36/*
37 * fscache.c
38 */
39extern void cifs_fscache_get_client_cookie(struct TCP_Server_Info *);
40extern void cifs_fscache_release_client_cookie(struct TCP_Server_Info *);
41
33#else /* CONFIG_CIFS_FSCACHE */ 42#else /* CONFIG_CIFS_FSCACHE */
34static inline int cifs_fscache_register(void) { return 0; } 43static inline int cifs_fscache_register(void) { return 0; }
35static inline void cifs_fscache_unregister(void) {} 44static inline void cifs_fscache_unregister(void) {}
36 45
46static inline void
47cifs_fscache_get_client_cookie(struct TCP_Server_Info *server) {}
48static inline void
49cifs_fscache_get_client_cookie(struct TCP_Server_Info *server); {}
50
37#endif /* CONFIG_CIFS_FSCACHE */ 51#endif /* CONFIG_CIFS_FSCACHE */
38 52
39#endif /* _CIFS_FSCACHE_H */ 53#endif /* _CIFS_FSCACHE_H */