sysfs: introduce [__]sysfs_remove()
authorTejun Heo <tj@kernel.org>
Wed, 18 Sep 2013 21:15:38 +0000 (17:15 -0400)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 9 Jun 2015 09:31:11 +0000 (11:31 +0200)
commitedb51362e857676d23523ed6715c5c4a4e4cb3d2
treeed427b62496ede2edc501ce6b3ad7ecd87899797
parent2f09f3a9b164159151db3a55248307a2c964bbc5
sysfs: introduce [__]sysfs_remove()

Given a sysfs_dirent, there is no reason to have multiple versions of
removal functions.  A function which removes the specified
sysfs_dirent and its descendants is enough.

This patch intorduces [__}sysfs_remove() which replaces all internal
variations of removal functions.  This will be the only removal
function in the planned new sysfs_dirent based interface.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/dir.c
fs/sysfs/group.c
fs/sysfs/inode.c
fs/sysfs/sysfs.h