diff options
Diffstat (limited to 'include/linux/nfsd/nfsd.h')
-rw-r--r-- | include/linux/nfsd/nfsd.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h index 8f85d9a59607..5791dfd30dd0 100644 --- a/include/linux/nfsd/nfsd.h +++ b/include/linux/nfsd/nfsd.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/unistd.h> | 15 | #include <linux/unistd.h> |
16 | #include <linux/dirent.h> | 16 | #include <linux/dirent.h> |
17 | #include <linux/fs.h> | 17 | #include <linux/fs.h> |
18 | #include <linux/posix_acl.h> | ||
18 | #include <linux/mount.h> | 19 | #include <linux/mount.h> |
19 | 20 | ||
20 | #include <linux/nfsd/debug.h> | 21 | #include <linux/nfsd/debug.h> |
@@ -124,20 +125,39 @@ int nfsd_statfs(struct svc_rqst *, struct svc_fh *, | |||
124 | int nfsd_notify_change(struct inode *, struct iattr *); | 125 | int nfsd_notify_change(struct inode *, struct iattr *); |
125 | int nfsd_permission(struct svc_export *, struct dentry *, int); | 126 | int nfsd_permission(struct svc_export *, struct dentry *, int); |
126 | 127 | ||
128 | #if defined(CONFIG_NFSD_V2_ACL) || defined(CONFIG_NFSD_V3_ACL) | ||
129 | #ifdef CONFIG_NFSD_V2_ACL | ||
130 | extern struct svc_version nfsd_acl_version2; | ||
131 | #else | ||
132 | #define nfsd_acl_version2 NULL | ||
133 | #endif | ||
134 | #ifdef CONFIG_NFSD_V3_ACL | ||
135 | extern struct svc_version nfsd_acl_version3; | ||
136 | #else | ||
137 | #define nfsd_acl_version3 NULL | ||
138 | #endif | ||
139 | struct posix_acl *nfsd_get_posix_acl(struct svc_fh *, int); | ||
140 | int nfsd_set_posix_acl(struct svc_fh *, int, struct posix_acl *); | ||
141 | #endif | ||
142 | |||
127 | 143 | ||
128 | /* | 144 | /* |
129 | * NFSv4 State | 145 | * NFSv4 State |
130 | */ | 146 | */ |
131 | #ifdef CONFIG_NFSD_V4 | 147 | #ifdef CONFIG_NFSD_V4 |
132 | int nfs4_state_init(void); | 148 | void nfs4_state_init(void); |
149 | int nfs4_state_start(void); | ||
133 | void nfs4_state_shutdown(void); | 150 | void nfs4_state_shutdown(void); |
134 | time_t nfs4_lease_time(void); | 151 | time_t nfs4_lease_time(void); |
135 | void nfs4_reset_lease(time_t leasetime); | 152 | void nfs4_reset_lease(time_t leasetime); |
153 | int nfs4_reset_recoverydir(char *recdir); | ||
136 | #else | 154 | #else |
137 | static inline int nfs4_state_init(void){return 0;} | 155 | static inline void nfs4_state_init(void){}; |
156 | static inline int nfs4_state_start(void){return 0;} | ||
138 | static inline void nfs4_state_shutdown(void){} | 157 | static inline void nfs4_state_shutdown(void){} |
139 | static inline time_t nfs4_lease_time(void){return 0;} | 158 | static inline time_t nfs4_lease_time(void){return 0;} |
140 | static inline void nfs4_reset_lease(time_t leasetime){} | 159 | static inline void nfs4_reset_lease(time_t leasetime){} |
160 | static inline int nfs4_reset_recoverydir(char *recdir) {return 0;} | ||
141 | #endif | 161 | #endif |
142 | 162 | ||
143 | /* | 163 | /* |