From: Al Viro Date: Mon, 7 Jul 2025 01:56:58 +0000 (-0400) Subject: check_export(): constify path argument X-Git-Tag: v6.18-rc1~108^2~1^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72c1118d32eb35e1548a161b428bd89d4a244f79;p=thirdparty%2Fkernel%2Flinux.git check_export(): constify path argument Reviewed-by: Jan Kara Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index dffb24758f609..caa695c06efbf 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -402,7 +402,7 @@ static struct svc_export *svc_export_update(struct svc_export *new, struct svc_export *old); static struct svc_export *svc_export_lookup(struct svc_export *); -static int check_export(struct path *path, int *flags, unsigned char *uuid) +static int check_export(const struct path *path, int *flags, unsigned char *uuid) { struct inode *inode = d_inode(path->dentry);