diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-06-24 01:03:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:06:32 -0400 |
commit | ac4d8ff2a57179de3ef7834c6ab3fac430b0a05d (patch) | |
tree | 8c0f7125177a47d4140a73e4b59309a5bb3ffd2c /include | |
parent | 76a3550ec50ed86885a10a767ebaebb7c9104721 (diff) |
[PATCH] knfsd: nfsd4: clean up state initialization
Separate out stuff that needs initialization on startup from stuff that only
needs initialization on module init from static data.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfsd/nfsd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h index 3855fdc5af77..21c6e9d86e4f 100644 --- a/include/linux/nfsd/nfsd.h +++ b/include/linux/nfsd/nfsd.h | |||
@@ -145,11 +145,13 @@ int nfsd_set_posix_acl(struct svc_fh *, int, struct posix_acl *); | |||
145 | * NFSv4 State | 145 | * NFSv4 State |
146 | */ | 146 | */ |
147 | #ifdef CONFIG_NFSD_V4 | 147 | #ifdef CONFIG_NFSD_V4 |
148 | void nfs4_state_init(void); | ||
148 | int nfs4_state_start(void); | 149 | int nfs4_state_start(void); |
149 | void nfs4_state_shutdown(void); | 150 | void nfs4_state_shutdown(void); |
150 | time_t nfs4_lease_time(void); | 151 | time_t nfs4_lease_time(void); |
151 | void nfs4_reset_lease(time_t leasetime); | 152 | void nfs4_reset_lease(time_t leasetime); |
152 | #else | 153 | #else |
154 | static inline void nfs4_state_init(void){}; | ||
153 | static inline int nfs4_state_start(void){return 0;} | 155 | static inline int nfs4_state_start(void){return 0;} |
154 | static inline void nfs4_state_shutdown(void){} | 156 | static inline void nfs4_state_shutdown(void){} |
155 | static inline time_t nfs4_lease_time(void){return 0;} | 157 | static inline time_t nfs4_lease_time(void){return 0;} |