summaryrefslogtreecommitdiff
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-04 13:19:18 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2022-09-01 17:39:49 -0400
commitea4af4aa03c3966c63231b4191da94497de8f034 (patch)
treebb0269a3fd4be1c6a7679578bce21aec5d79b18a /fs/namei.c
parentbf2e1ae41731f940f9b977820e4c68454a639909 (diff)
downloadlinux-rpi-ea4af4aa03c3966c63231b4191da94497de8f034.tar.gz
linux-rpi-ea4af4aa03c3966c63231b4191da94497de8f034.tar.bz2
linux-rpi-ea4af4aa03c3966c63231b4191da94497de8f034.zip
nd_jump_link(): 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 6a5ab1a6f01b..8533087e5dac 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -986,7 +986,7 @@ static int nd_jump_root(struct nameidata *nd)
* Helper to directly jump to a known parsed path from ->get_link,
* caller must have taken a reference to path beforehand.
*/
-int nd_jump_link(struct path *path)
+int nd_jump_link(const struct path *path)
{
int error = -ELOOP;
struct nameidata *nd = current->nameidata;