From: Christoph Hellwig Date: Mon, 11 May 2026 07:22:29 +0000 (+0200) Subject: fs: remove start_removing_user_path_at X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6666aef11053d492ff6e715c89b139fc1655b1c;p=thirdparty%2Fkernel%2Flinux.git fs: remove start_removing_user_path_at This function is entirely unused, remove it. Signed-off-by: Christoph Hellwig Link: https://patch.msgid.link/20260511072239.2456725-3-hch@lst.de Signed-off-by: Christian Brauner (Amutable) --- diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst index fdf074429cd3a..f546b1d3897fa 100644 --- a/Documentation/filesystems/porting.rst +++ b/Documentation/filesystems/porting.rst @@ -1297,7 +1297,6 @@ Several functions are renamed: - kern_path_locked -> start_removing_path - kern_path_create -> start_creating_path - user_path_create -> start_creating_user_path -- user_path_locked_at -> start_removing_user_path_at - done_path_create -> end_creating_path --- diff --git a/fs/namei.c b/fs/namei.c index c7fac83c9a85e..bc641838530f4 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3029,15 +3029,6 @@ struct dentry *start_removing_path(const char *name, struct path *path) return __start_removing_path(AT_FDCWD, filename, path); } -struct dentry *start_removing_user_path_at(int dfd, - const char __user *name, - struct path *path) -{ - CLASS(filename, filename)(name); - return __start_removing_path(dfd, filename, path); -} -EXPORT_SYMBOL(start_removing_user_path_at); - int kern_path(const char *name, unsigned int flags, struct path *path) { CLASS(filename_kernel, filename)(name); diff --git a/include/linux/namei.h b/include/linux/namei.h index 2ad6dd9987b90..80488b3de0c98 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -61,7 +61,6 @@ extern struct dentry *start_creating_path(int, const char *, struct path *, unsi extern struct dentry *start_creating_user_path(int, const char __user *, struct path *, unsigned int); extern void end_creating_path(const struct path *, struct dentry *); extern struct dentry *start_removing_path(const char *, struct path *); -extern struct dentry *start_removing_user_path_at(int , const char __user *, struct path *); static inline void end_removing_path(const struct path *path , struct dentry *dentry) { end_creating_path(path, dentry);