]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
check_export(): constify path argument
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Jul 2025 01:56:58 +0000 (21:56 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:17:08 +0000 (21:17 -0400)
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfsd/export.c

index dffb24758f609aa2fe2d1d290a5f575e90282ac8..caa695c06efbf2ade26c99d791ad47c4d06e5fc4 100644 (file)
@@ -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);