[PATCH 3/5] sysfs: make sysfs_add/remove_one() call link/unlink_sibling() implictly

2007-08-02 Thread Tejun Heo
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

[PATCH 3/5] sysfs: make sysfs_add/remove_one() call link/unlink_sibling() implictly

2007-08-02 Thread Tejun Heo
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