summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-05-11 16:39:07 +0300
committerChristian Brauner <brauner@kernel.org>2026-05-21 14:39:34 +0300
commitccde023e6aea3c31fb2643cb76a6205bc343f979 (patch)
tree1750c29214928e27fae5dc691ff76135f9c780c4
parente7d43a48a8e990b43ef8634248ee5b03f19ed3ea (diff)
parent5d833d8ba5b058d391d476fd877a7850965c104f (diff)
downloadlinux-ccde023e6aea3c31fb2643cb76a6205bc343f979.tar.xz
Merge patch series "drop unused VFS exports"
Christoph Hellwig <hch@lst.de> says: This series drops a little dead code from the VFS. * patches from https://patch.msgid.link/20260511072239.2456725-1-hch@lst.de: fs: fold __start_removing_path into start_removing_path fs: remove start_removing_user_path_at fs: unexport drop_super_exclusive Link: https://patch.msgid.link/20260511072239.2456725-1-hch@lst.de Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
-rw-r--r--Documentation/filesystems/porting.rst1
-rw-r--r--fs/namei.c22
-rw-r--r--fs/super.c1
-rw-r--r--include/linux/namei.h1
4 files changed, 4 insertions, 21 deletions
diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst
index fdf074429cd3..f546b1d3897f 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 c7fac83c9a85..4852ca208bd4 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2955,15 +2955,16 @@ void end_dirop(struct dentry *de)
EXPORT_SYMBOL(end_dirop);
/* does lookup, returns the object with parent locked */
-static struct dentry *__start_removing_path(int dfd, struct filename *name,
- struct path *path)
+struct dentry *start_removing_path(const char *name, struct path *path)
{
+ CLASS(filename_kernel, filename)(name);
struct path parent_path __free(path_put) = {};
struct dentry *d;
struct qstr last;
int type, error;
- error = filename_parentat(dfd, name, 0, &parent_path, &last, &type);
+ error = filename_parentat(AT_FDCWD, filename, 0, &parent_path, &last,
+ &type);
if (error)
return ERR_PTR(error);
if (unlikely(type != LAST_NORM))
@@ -3023,21 +3024,6 @@ struct dentry *kern_path_parent(const char *name, struct path *path)
return d;
}
-struct dentry *start_removing_path(const char *name, struct path *path)
-{
- CLASS(filename_kernel, filename)(name);
- 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/fs/super.c b/fs/super.c
index 378e81efe643..5d46a0d5b616 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -882,7 +882,6 @@ void drop_super_exclusive(struct super_block *sb)
super_unlock_excl(sb);
put_super(sb);
}
-EXPORT_SYMBOL(drop_super_exclusive);
enum super_iter_flags_t {
SUPER_ITER_EXCL = (1U << 0),
diff --git a/include/linux/namei.h b/include/linux/namei.h
index 2ad6dd9987b9..80488b3de0c9 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);