diff options
author | Tejun Heo <tj@kernel.org> | 2013-10-24 11:49:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 18:12:07 -0400 |
commit | 7eed6ecb0785681892ab1fe47188fc981241cfd0 (patch) | |
tree | 5f1c88f8bc17ae7beffcf0ed319ca9708bd3a082 /fs/sysfs/sysfs.h | |
parent | baa97cb50724e72ece05a7cead6533a9658ddf79 (diff) |
sysfs: move sysfs_hash_and_remove() to fs/sysfs/dir.c
Most removal related logic is implemented in fs/sysfs/dir.c. Move
sysfs_hash_and_remove() to fs/sysfs/dir.c so that __sysfs_remove()
doesn't have to be public.
This is pure relocation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index e0753e5eff41..8d3dc1ddb546 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -172,8 +172,9 @@ int __sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd, | |||
172 | struct sysfs_dirent *parent_sd); | 172 | struct sysfs_dirent *parent_sd); |
173 | int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd, | 173 | int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd, |
174 | struct sysfs_dirent *parent_sd); | 174 | struct sysfs_dirent *parent_sd); |
175 | void __sysfs_remove(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd); | ||
176 | void sysfs_remove(struct sysfs_dirent *sd); | 175 | void sysfs_remove(struct sysfs_dirent *sd); |
176 | int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name, | ||
177 | const void *ns); | ||
177 | void sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt); | 178 | void sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt); |
178 | 179 | ||
179 | struct sysfs_dirent *sysfs_find_dirent(struct sysfs_dirent *parent_sd, | 180 | struct sysfs_dirent *sysfs_find_dirent(struct sysfs_dirent *parent_sd, |
@@ -218,8 +219,6 @@ int sysfs_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
218 | struct kstat *stat); | 219 | struct kstat *stat); |
219 | int sysfs_setxattr(struct dentry *dentry, const char *name, const void *value, | 220 | int sysfs_setxattr(struct dentry *dentry, const char *name, const void *value, |
220 | size_t size, int flags); | 221 | size_t size, int flags); |
221 | int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name, | ||
222 | const void *ns); | ||
223 | int sysfs_inode_init(void); | 222 | int sysfs_inode_init(void); |
224 | 223 | ||
225 | /* | 224 | /* |