configfs: Remove unused configfs_hash_and_remove
PATCH 1/1 configfs: Remove unused configfs_hash_and_remove
From: "Dr. David Alan Gilbert" <[email protected]>
configfs_hash_and_remove() has been unused since it was added in 2005 by commit7063fbf22611 ("[PATCH] configfs: User-driven configuration filesystem")
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- fs/configfs/configfs_internal.h | 2 -- fs/configfs/inode.c | 25 ------------------------- 2 files changed, 27 deletions(-)
fs/configfs/configfs_internal.h +0 -2
@@ -73,8 +73,6 @@ extern int configfs_make_dirent(struct configfs_dirent *, struct dentry *, void *, umode_t, int, struct configfs_fragment *);extern int configfs_dirent_is_ready (struct configfs_dirent *); -extern void configfs_hash_and_remove (struct dentry * dir,const char * name); -extern const unsigned char *configfs_get_name (struct configfs_dirent *sd);extern void configfs_drop_dentry (struct configfs_dirent *sd,struct dentry *parent); extern int configfs_setattr(struct mnt_idmap *idmap,
fs/configfs/inode.c +0 -25
@@ -216,28 +216,3 @@ void configfs_drop_dentry(struct configfs_dirent * sd, struct dentry * parent)spin_unlock (&dentry->d_lock); } } - -void configfs_hash_and_remove (struct dentry * dir,const char * name) -{ -struct configfs_dirent * sd; -struct configfs_dirent * parent_sd = dir->d_fsdata; - -if (d_really_is_negative (dir)) -/* no inode means this hasn't been made visible yet */ -return ; - -inode_lock (d_inode (dir)); -list_for_each_entry (sd, &parent_sd->s_children, s_sibling) { -if (!sd->s_element) -continue ; -if (!strcmp (configfs_get_name (sd), name)) { -spin_lock (&configfs_dirent_lock); -list_del_init (&sd->s_sibling); -spin_unlock (&configfs_dirent_lock); -configfs_drop_dentry (sd, dir); -configfs_put (sd); -break ; - } - } -inode_unlock (d_inode (dir)); -}
Signature · 1 line
2.47.0
Quoted 9 lines · * [email protected] ([email protected]) wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
configfs_hash_and_remove()has been unused since it was added in 2005 by commit7063fbf22611("[PATCH] configfs: User-driven configuration filesystem")Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Ping
Thanks,
Dave
Quoted 54 lines
--- fs/configfs/configfs_internal.h | 2 -- fs/configfs/inode.c | 25 ------------------------- 2 files changed, 27 deletions(-)fs/configfs/configfs_internal.h +0
-2@@ -73,8 +73,6 @@ extern int configfs_make_dirent(struct configfs_dirent *, struct dentry *, void *, umode_t, int, struct configfs_fragment *);extern int configfs_dirent_is_ready (struct configfs_dirent *); -extern void configfs_hash_and_remove (struct dentry * dir,const char * name); -extern const unsigned char *configfs_get_name (struct configfs_dirent *sd);extern void configfs_drop_dentry (struct configfs_dirent *sd,struct dentry *parent); extern int configfs_setattr(struct mnt_idmap *idmap,fs/configfs/inode.c +0
-25@@ -216,28 +216,3 @@ void configfs_drop_dentry(struct configfs_dirent * sd, struct dentry * parent)spin_unlock (&dentry->d_lock); } } - -void configfs_hash_and_remove (struct dentry * dir,const char * name) -{ -struct configfs_dirent * sd; -struct configfs_dirent * parent_sd = dir->d_fsdata; - -if (d_really_is_negative (dir)) -/* no inode means this hasn't been made visible yet */ -return ; - -inode_lock (d_inode (dir)); -list_for_each_entry (sd, &parent_sd->s_children, s_sibling) { -if (!sd->s_element) -continue ; -if (!strcmp (configfs_get_name (sd), name)) { -spin_lock (&configfs_dirent_lock); -list_del_init (&sd->s_sibling); -spin_unlock (&configfs_dirent_lock); -configfs_drop_dentry (sd, dir); -configfs_put (sd); -break ; - } - } -inode_unlock (d_inode (dir)); -}Signature · 1 line
2.47.0
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Hi David,
I thought I already picked this up, but I didn't.
It is queued up now, thanks a lot!
Quoted 5 lines · * Christoph Hellwig ([email protected]) wrote:
Hi David,
I thought I already picked this up, but I didn't.
It is queued up now, thanks a lot!
Thanks!
Dave
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/