Skip to content

Commit 9c71fe0

Browse files
author
Al Viro
committed
rqst_exp_get_by_name(): constify path argument
Acked-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent df9a4d7 commit 9c71fe0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fs/nfsd/export.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp,
11811181
* use exp_get_by_name() or exp_find().
11821182
*/
11831183
struct svc_export *
1184-
rqst_exp_get_by_name(struct svc_rqst *rqstp, struct path *path)
1184+
rqst_exp_get_by_name(struct svc_rqst *rqstp, const struct path *path)
11851185
{
11861186
struct svc_export *gssexp, *exp = ERR_PTR(-ENOENT);
11871187
struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id);

fs/nfsd/export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int nfsd_export_init(struct net *);
111111
void nfsd_export_shutdown(struct net *);
112112
void nfsd_export_flush(struct net *);
113113
struct svc_export * rqst_exp_get_by_name(struct svc_rqst *,
114-
struct path *);
114+
const struct path *);
115115
struct svc_export * rqst_exp_parent(struct svc_rqst *,
116116
struct path *);
117117
struct svc_export * rqst_find_fsidzero_export(struct svc_rqst *);

0 commit comments

Comments
 (0)