summaryrefslogtreecommitdiff
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-04 12:53:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2022-09-01 17:36:52 -0400
commit8996682b10ff4de4f6f36fc81211f0a1c0437495 (patch)
treed4fd9f851b4b33a0774015041e5500bf6a3e85c7 /fs/namei.c
parent6ccaaf59c335a8af742bdf5922a49fc11b422e8b (diff)
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/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 53b4bc094db2..6a5ab1a6f01b 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1178,7 +1178,7 @@ static bool safe_hardlink_source(struct user_namespace *mnt_userns,
*
* Returns 0 if successful, -ve on error.
*/
-int may_linkat(struct user_namespace *mnt_userns, struct path *link)
+int may_linkat(struct user_namespace *mnt_userns, const struct path *link)
{
struct inode *inode = link->dentry->d_inode;