diff options
Diffstat (limited to 'fs/nfsd/nfsd.h')
-rw-r--r-- | fs/nfsd/nfsd.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/fs/nfsd/nfsd.h b/fs/nfsd/nfsd.h index 58134a23fdfb..1d1e8589b4ce 100644 --- a/fs/nfsd/nfsd.h +++ b/fs/nfsd/nfsd.h | |||
@@ -104,14 +104,16 @@ static inline int nfsd_v4client(struct svc_rqst *rq) | |||
104 | */ | 104 | */ |
105 | #ifdef CONFIG_NFSD_V4 | 105 | #ifdef CONFIG_NFSD_V4 |
106 | extern unsigned int max_delegations; | 106 | extern unsigned int max_delegations; |
107 | int nfs4_state_init(void); | 107 | void nfs4_state_init(void); |
108 | int nfsd4_init_slabs(void); | ||
108 | void nfsd4_free_slabs(void); | 109 | void nfsd4_free_slabs(void); |
109 | int nfs4_state_start(void); | 110 | int nfs4_state_start(void); |
110 | void nfs4_state_shutdown(void); | 111 | void nfs4_state_shutdown(void); |
111 | void nfs4_reset_lease(time_t leasetime); | 112 | void nfs4_reset_lease(time_t leasetime); |
112 | int nfs4_reset_recoverydir(char *recdir); | 113 | int nfs4_reset_recoverydir(char *recdir); |
113 | #else | 114 | #else |
114 | static inline int nfs4_state_init(void) { return 0; } | 115 | static inline void nfs4_state_init(void) { } |
116 | static inline int nfsd4_init_slabs(void) { return 0; } | ||
115 | static inline void nfsd4_free_slabs(void) { } | 117 | static inline void nfsd4_free_slabs(void) { } |
116 | static inline int nfs4_state_start(void) { return 0; } | 118 | static inline int nfs4_state_start(void) { return 0; } |
117 | static inline void nfs4_state_shutdown(void) { } | 119 | static inline void nfs4_state_shutdown(void) { } |
@@ -338,15 +340,15 @@ static inline u32 nfsd_suppattrs2(u32 minorversion) | |||
338 | } | 340 | } |
339 | 341 | ||
340 | /* These will return ERR_INVAL if specified in GETATTR or READDIR. */ | 342 | /* These will return ERR_INVAL if specified in GETATTR or READDIR. */ |
341 | #define NFSD_WRITEONLY_ATTRS_WORD1 \ | 343 | #define NFSD_WRITEONLY_ATTRS_WORD1 \ |
342 | (FATTR4_WORD1_TIME_ACCESS_SET | FATTR4_WORD1_TIME_MODIFY_SET) | 344 | (FATTR4_WORD1_TIME_ACCESS_SET | FATTR4_WORD1_TIME_MODIFY_SET) |
343 | 345 | ||
344 | /* These are the only attrs allowed in CREATE/OPEN/SETATTR. */ | 346 | /* These are the only attrs allowed in CREATE/OPEN/SETATTR. */ |
345 | #define NFSD_WRITEABLE_ATTRS_WORD0 \ | 347 | #define NFSD_WRITEABLE_ATTRS_WORD0 \ |
346 | (FATTR4_WORD0_SIZE | FATTR4_WORD0_ACL ) | 348 | (FATTR4_WORD0_SIZE | FATTR4_WORD0_ACL) |
347 | #define NFSD_WRITEABLE_ATTRS_WORD1 \ | 349 | #define NFSD_WRITEABLE_ATTRS_WORD1 \ |
348 | (FATTR4_WORD1_MODE | FATTR4_WORD1_OWNER | FATTR4_WORD1_OWNER_GROUP \ | 350 | (FATTR4_WORD1_MODE | FATTR4_WORD1_OWNER | FATTR4_WORD1_OWNER_GROUP \ |
349 | | FATTR4_WORD1_TIME_ACCESS_SET | FATTR4_WORD1_TIME_MODIFY_SET) | 351 | | FATTR4_WORD1_TIME_ACCESS_SET | FATTR4_WORD1_TIME_MODIFY_SET) |
350 | #define NFSD_WRITEABLE_ATTRS_WORD2 0 | 352 | #define NFSD_WRITEABLE_ATTRS_WORD2 0 |
351 | 353 | ||
352 | #define NFSD_SUPPATTR_EXCLCREAT_WORD0 \ | 354 | #define NFSD_SUPPATTR_EXCLCREAT_WORD0 \ |