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>
This commit is contained in:
committed by
Linus Torvalds
parent
87548c37c8
commit
0989a78896
@@ -129,10 +129,16 @@ struct svc_export * exp_get_by_name(struct auth_domain *clp,
|
||||
struct vfsmount *mnt,
|
||||
struct dentry *dentry,
|
||||
struct cache_req *reqp);
|
||||
struct svc_export * rqst_exp_get_by_name(struct svc_rqst *,
|
||||
struct vfsmount *,
|
||||
struct dentry *);
|
||||
struct svc_export * exp_parent(struct auth_domain *clp,
|
||||
struct vfsmount *mnt,
|
||||
struct dentry *dentry,
|
||||
struct cache_req *reqp);
|
||||
struct svc_export * rqst_exp_parent(struct svc_rqst *,
|
||||
struct vfsmount *mnt,
|
||||
struct dentry *dentry);
|
||||
int exp_rootfh(struct auth_domain *,
|
||||
char *path, struct knfsd_fh *, int maxsize);
|
||||
__be32 exp_pseudoroot(struct svc_rqst *, struct svc_fh *);
|
||||
@@ -152,6 +158,7 @@ static inline void exp_get(struct svc_export *exp)
|
||||
extern struct svc_export *
|
||||
exp_find(struct auth_domain *clp, int fsid_type, u32 *fsidv,
|
||||
struct cache_req *reqp);
|
||||
struct svc_export * rqst_exp_find(struct svc_rqst *, int, u32 *);
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
|
Reference in New Issue
Block a user