nd_jump_link(): constify path
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
bf2e1ae417
commit
ea4af4aa03
@ -986,7 +986,7 @@ static int nd_jump_root(struct nameidata *nd)
|
|||||||
* Helper to directly jump to a known parsed path from ->get_link,
|
* Helper to directly jump to a known parsed path from ->get_link,
|
||||||
* caller must have taken a reference to path beforehand.
|
* 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;
|
int error = -ELOOP;
|
||||||
struct nameidata *nd = current->nameidata;
|
struct nameidata *nd = current->nameidata;
|
||||||
|
@ -83,7 +83,7 @@ extern int follow_up(struct path *);
|
|||||||
extern struct dentry *lock_rename(struct dentry *, struct dentry *);
|
extern struct dentry *lock_rename(struct dentry *, struct dentry *);
|
||||||
extern void unlock_rename(struct dentry *, struct dentry *);
|
extern void unlock_rename(struct dentry *, struct dentry *);
|
||||||
|
|
||||||
extern int __must_check nd_jump_link(struct path *path);
|
extern int __must_check nd_jump_link(const struct path *path);
|
||||||
|
|
||||||
static inline void nd_terminate_link(void *name, size_t len, size_t maxlen)
|
static inline void nd_terminate_link(void *name, size_t len, size_t maxlen)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user