mirror of https://github.com/torvalds/linux.git
done_path_create(): constify path argument
Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7b129f2e70
commit
63dbfb077c
|
|
@ -4170,7 +4170,7 @@ struct dentry *kern_path_create(int dfd, const char *pathname,
|
|||
}
|
||||
EXPORT_SYMBOL(kern_path_create);
|
||||
|
||||
void done_path_create(struct path *path, struct dentry *dentry)
|
||||
void done_path_create(const struct path *path, struct dentry *dentry)
|
||||
{
|
||||
if (!IS_ERR(dentry))
|
||||
dput(dentry);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ extern int kern_path(const char *, unsigned, struct path *);
|
|||
|
||||
extern struct dentry *kern_path_create(int, const char *, struct path *, unsigned int);
|
||||
extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int);
|
||||
extern void done_path_create(struct path *, struct dentry *);
|
||||
extern void done_path_create(const struct path *, struct dentry *);
|
||||
extern struct dentry *kern_path_locked(const char *, struct path *);
|
||||
extern struct dentry *kern_path_locked_negative(const char *, struct path *);
|
||||
extern struct dentry *user_path_locked_at(int , const char __user *, struct path *);
|
||||
|
|
|
|||
Loading…
Reference in New Issue