summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-04 18:53:46 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2022-09-01 23:36:52 +0200
commit8996682b10ff4de4f6f36fc81211f0a1c0437495 (patch)
treed4fd9f851b4b33a0774015041e5500bf6a3e85c7 /fs/internal.h
parentdo_sys_name_to_handle(): constify path (diff)
downloadlinux-8996682b10ff4de4f6f36fc81211f0a1c0437495.tar.xz
linux-8996682b10ff4de4f6f36fc81211f0a1c0437495.zip
may_linkat(): constify path
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/internal.h b/fs/internal.h
index 87e96b9024ce..c209b4838d68 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -62,7 +62,7 @@ extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
const char *, unsigned int, struct path *);
int do_rmdir(int dfd, struct filename *name);
int do_unlinkat(int dfd, struct filename *name);
-int may_linkat(struct user_namespace *mnt_userns, struct path *link);
+int may_linkat(struct user_namespace *mnt_userns, const struct path *link);
int do_renameat2(int olddfd, struct filename *oldname, int newdfd,
struct filename *newname, unsigned int flags);
int do_mkdirat(int dfd, struct filename *name, umode_t mode);