diff options
author | Suresh Jayaraman <sjayaraman@suse.de> | 2010-07-05 08:42:15 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-08-02 08:40:34 -0400 |
commit | 488f1d2d6cc9d665c9f09e4b54f77052732e3058 (patch) | |
tree | 2e240da84cdb009b89508e0fa748bebe71e35766 /fs/cifs/fscache.h | |
parent | f579cf3cfd1e19ae5aab6929679d0c04bf1a6284 (diff) |
cifs: define server-level cache index objects and register them
Define server-level cache index objects (as managed by TCP_ServerInfo structs)
and register then with FS-Cache. Each server object is created in the CIFS
top-level index object and is itself an index into which superblock-level
objects are inserted.
The server objects are now keyed by {IPaddress,family,port} tuple.
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/fscache.h')
-rw-r--r-- | fs/cifs/fscache.h | 14 |
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 | ||
28 | extern struct fscache_netfs cifs_fscache_netfs; | 30 | extern struct fscache_netfs cifs_fscache_netfs; |
31 | extern const struct fscache_cookie_def cifs_fscache_server_index_def; | ||
29 | 32 | ||
30 | extern int cifs_fscache_register(void); | 33 | extern int cifs_fscache_register(void); |
31 | extern void cifs_fscache_unregister(void); | 34 | extern void cifs_fscache_unregister(void); |
32 | 35 | ||
36 | /* | ||
37 | * fscache.c | ||
38 | */ | ||
39 | extern void cifs_fscache_get_client_cookie(struct TCP_Server_Info *); | ||
40 | extern void cifs_fscache_release_client_cookie(struct TCP_Server_Info *); | ||
41 | |||
33 | #else /* CONFIG_CIFS_FSCACHE */ | 42 | #else /* CONFIG_CIFS_FSCACHE */ |
34 | static inline int cifs_fscache_register(void) { return 0; } | 43 | static inline int cifs_fscache_register(void) { return 0; } |
35 | static inline void cifs_fscache_unregister(void) {} | 44 | static inline void cifs_fscache_unregister(void) {} |
36 | 45 | ||
46 | static inline void | ||
47 | cifs_fscache_get_client_cookie(struct TCP_Server_Info *server) {} | ||
48 | static inline void | ||
49 | cifs_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 */ |