From: Al Viro Date: Sun, 6 Jul 2025 22:53:37 +0000 (-0400) Subject: rqst_exp_get_by_name(): constify path argument X-Git-Tag: v6.18-rc1~108^2~1^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c71fe0abf324ab0ba77e3d161d16af3e0f9074b;p=thirdparty%2Fkernel%2Flinux.git rqst_exp_get_by_name(): constify path argument Acked-by: Chuck Lever Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index cadfc2bae60ea..dffb24758f609 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -1181,7 +1181,7 @@ denied: * use exp_get_by_name() or exp_find(). */ struct svc_export * -rqst_exp_get_by_name(struct svc_rqst *rqstp, struct path *path) +rqst_exp_get_by_name(struct svc_rqst *rqstp, const struct path *path) { struct svc_export *gssexp, *exp = ERR_PTR(-ENOENT); struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); diff --git a/fs/nfsd/export.h b/fs/nfsd/export.h index b9c0adb3ce091..cb36e6cce829e 100644 --- a/fs/nfsd/export.h +++ b/fs/nfsd/export.h @@ -111,7 +111,7 @@ int nfsd_export_init(struct net *); void nfsd_export_shutdown(struct net *); void nfsd_export_flush(struct net *); struct svc_export * rqst_exp_get_by_name(struct svc_rqst *, - struct path *); + const struct path *); struct svc_export * rqst_exp_parent(struct svc_rqst *, struct path *); struct svc_export * rqst_find_fsidzero_export(struct svc_rqst *);