mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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>
This commit is contained in:
commit
ccde023e6a
|
|
@ -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
|
||||
|
||||
---
|
||||
|
|
|
|||
22
fs/namei.c
22
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);
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user