aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsfh.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfsfh.c')
-rw-r--r--fs/nfsd/nfsfh.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
index 0108d3ec1c27..ecf9c361b3f5 100644
--- a/fs/nfsd/nfsfh.c
+++ b/fs/nfsd/nfsfh.c
@@ -28,10 +28,6 @@
28static int nfsd_nr_verified; 28static int nfsd_nr_verified;
29static int nfsd_nr_put; 29static int nfsd_nr_put;
30 30
31extern struct export_operations export_op_default;
32
33#define CALL(ops,fun) ((ops->fun)?(ops->fun):export_op_default.fun)
34
35/* 31/*
36 * our acceptability function. 32 * our acceptability function.
37 * if NOSUBTREECHECK, accept anything 33 * if NOSUBTREECHECK, accept anything
@@ -212,11 +208,9 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
212 if (fileid_type == 0) 208 if (fileid_type == 0)
213 dentry = dget(exp->ex_dentry); 209 dentry = dget(exp->ex_dentry);
214 else { 210 else {
215 struct export_operations *nop = exp->ex_mnt->mnt_sb->s_export_op; 211 dentry = exportfs_decode_fh(exp->ex_mnt, datap,
216 dentry = CALL(nop,decode_fh)(exp->ex_mnt->mnt_sb, 212 data_left, fileid_type,
217 datap, data_left, 213 nfsd_acceptable, exp);
218 fileid_type,
219 nfsd_acceptable, exp);
220 } 214 }
221 if (dentry == NULL) 215 if (dentry == NULL)
222 goto out; 216 goto out;
@@ -287,15 +281,13 @@ out:
287static inline int _fh_update(struct dentry *dentry, struct svc_export *exp, 281static inline int _fh_update(struct dentry *dentry, struct svc_export *exp,
288 __u32 *datap, int *maxsize) 282 __u32 *datap, int *maxsize)
289{ 283{
290 struct export_operations *nop = exp->ex_mnt->mnt_sb->s_export_op;
291
292 if (dentry == exp->ex_dentry) { 284 if (dentry == exp->ex_dentry) {
293 *maxsize = 0; 285 *maxsize = 0;
294 return 0; 286 return 0;
295 } 287 }
296 288
297 return CALL(nop,encode_fh)(dentry, datap, maxsize, 289 return exportfs_encode_fh(dentry, datap, maxsize,
298 !(exp->ex_flags&NFSEXP_NOSUBTREECHECK)); 290 !(exp->ex_flags & NFSEXP_NOSUBTREECHECK));
299} 291}
300 292
301/* 293/*