Skip to content

Commit ea4af4a

Browse files
author
Al Viro
committed
nd_jump_link(): constify path
Reviewed-by: Christian Brauner (Microsoft) <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent bf2e1ae commit ea4af4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ static int nd_jump_root(struct nameidata *nd)
986986
* Helper to directly jump to a known parsed path from ->get_link,
987987
* caller must have taken a reference to path beforehand.
988988
*/
989-
int nd_jump_link(struct path *path)
989+
int nd_jump_link(const struct path *path)
990990
{
991991
int error = -ELOOP;
992992
struct nameidata *nd = current->nameidata;

include/linux/namei.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extern int follow_up(struct path *);
8383
extern struct dentry *lock_rename(struct dentry *, struct dentry *);
8484
extern void unlock_rename(struct dentry *, struct dentry *);
8585

86-
extern int __must_check nd_jump_link(struct path *path);
86+
extern int __must_check nd_jump_link(const struct path *path);
8787

8888
static inline void nd_terminate_link(void *name, size_t len, size_t maxlen)
8989
{

0 commit comments

Comments
 (0)