Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Al Viro 63dbfb07 7b129f2e

+2 -2
+1 -1
fs/namei.c
··· 4170 4170 } 4171 4171 EXPORT_SYMBOL(kern_path_create); 4172 4172 4173 - void done_path_create(struct path *path, struct dentry *dentry) 4173 + void done_path_create(const struct path *path, struct dentry *dentry) 4174 4174 { 4175 4175 if (!IS_ERR(dentry)) 4176 4176 dput(dentry);
+1 -1
include/linux/namei.h
··· 60 60 61 61 extern struct dentry *kern_path_create(int, const char *, struct path *, unsigned int); 62 62 extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int); 63 - extern void done_path_create(struct path *, struct dentry *); 63 + extern void done_path_create(const struct path *, struct dentry *); 64 64 extern struct dentry *kern_path_locked(const char *, struct path *); 65 65 extern struct dentry *kern_path_locked_negative(const char *, struct path *); 66 66 extern struct dentry *user_path_locked_at(int , const char __user *, struct path *);