From: Tejun Heo Date: Thu, 2 Aug 2007 12:38:03 +0000 (+0900) Subject: sysfs: make sysfs_add/remove_one() call link/unlink_sibling() implictly X-Git-Tag: v2.6.24-rc1~1394^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41fc1c27452e041a18e5141b8203ee0ea72bc483;p=pandora-kernel.git sysfs: make sysfs_add/remove_one() call link/unlink_sibling() implictly When adding or removing a sysfs_dirent, the user used to be required to call link/unlink separately. It was for two reasons - code looked like that before sysfs_addrm_cxt conversion and to avoid looping through parent_sd->children list twice during removal. Performance optimization during removal just isn't worth it. Make sysfs_add/remove_one() call sysfs_link/unlink_sibing() implicitly. This makes code simpler albeit slightly less efficient. This change doesn't introduce any noticeable behavior change. Signed-off-by: Tejun Heo Acked-by: Cornelia Huck Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed