diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2007-07-17 07:04:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:07 -0400 |
commit | 0989a7889695831e49e2c53c1884f52645516a90 (patch) | |
tree | f2548a7ebdedbe89121c40c0157f5554093fb0d7 /include/linux | |
parent | 87548c37c8bdbf98aea002c9c04e4dc8aa27fe1b (diff) |
knfsd: nfsd: provide export lookup wrappers which take a svc_rqst
Split the callers of exp_get_by_name(), exp_find(), and exp_parent() into
those that are processing requests and those that are doing other stuff (like
looking up filehandles for mountd).
No change in behavior, just a (fairly pointless, on its own) cleanup.
(Note this has the effect of making nfsd_cross_mnt() pass rqstp->rq_client
instead of exp->ex_client into exp_find_by_name(). However, the two should
have the same value at this point.)
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nfsd/export.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/nfsd/export.h b/include/linux/nfsd/export.h index 5ed4f277eea..1ba53e52474 100644 --- a/include/linux/nfsd/export.h +++ b/include/linux/nfsd/export.h | |||
@@ -129,10 +129,16 @@ struct svc_export * exp_get_by_name(struct auth_domain *clp, | |||
129 | struct vfsmount *mnt, | 129 | struct vfsmount *mnt, |
130 | struct dentry *dentry, | 130 | struct dentry *dentry, |
131 | struct cache_req *reqp); | 131 | struct cache_req *reqp); |
132 | struct svc_export * rqst_exp_get_by_name(struct svc_rqst *, | ||
133 | struct vfsmount *, | ||
134 | struct dentry *); | ||
132 | struct svc_export * exp_parent(struct auth_domain *clp, | 135 | struct svc_export * exp_parent(struct auth_domain *clp, |
133 | struct vfsmount *mnt, | 136 | struct vfsmount *mnt, |
134 | struct dentry *dentry, | 137 | struct dentry *dentry, |
135 | struct cache_req *reqp); | 138 | struct cache_req *reqp); |
139 | struct svc_export * rqst_exp_parent(struct svc_rqst *, | ||
140 | struct vfsmount *mnt, | ||
141 | struct dentry *dentry); | ||
136 | int exp_rootfh(struct auth_domain *, | 142 | int exp_rootfh(struct auth_domain *, |
137 | char *path, struct knfsd_fh *, int maxsize); | 143 | char *path, struct knfsd_fh *, int maxsize); |
138 | __be32 exp_pseudoroot(struct svc_rqst *, struct svc_fh *); | 144 | __be32 exp_pseudoroot(struct svc_rqst *, struct svc_fh *); |
@@ -152,6 +158,7 @@ static inline void exp_get(struct svc_export *exp) | |||
152 | extern struct svc_export * | 158 | extern struct svc_export * |
153 | exp_find(struct auth_domain *clp, int fsid_type, u32 *fsidv, | 159 | exp_find(struct auth_domain *clp, int fsid_type, u32 *fsidv, |
154 | struct cache_req *reqp); | 160 | struct cache_req *reqp); |
161 | struct svc_export * rqst_exp_find(struct svc_rqst *, int, u32 *); | ||
155 | 162 | ||
156 | #endif /* __KERNEL__ */ | 163 | #endif /* __KERNEL__ */ |
157 | 164 | ||