diff options
author | Tejun Heo <htejun@gmail.com> | 2007-06-13 20:45:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 01:09:07 +0200 |
commit | fc9f54b9982e14e6dbe023425c87ffbfd6992c45 (patch) | |
tree | 61b828ac694d9e8decb02022a1056a5367bb1bef /lib/list_debug.c | |
parent | sysfs: fix parent refcounting during rename and move (diff) | |
download | linux-fc9f54b9982e14e6dbe023425c87ffbfd6992c45.tar.xz linux-fc9f54b9982e14e6dbe023425c87ffbfd6992c45.zip |
sysfs: reorganize sysfs_new_indoe() and sysfs_create()
Reorganize/clean up sysfs_new_inode() and sysfs_create().
* sysfs_init_inode() is separated out from sysfs_new_inode() and is
responsible for basic initialization.
* sysfs_instantiate() replaces the last step of sysfs_create() and is
responsible for dentry instantitaion.
* type-specific initialization is moved out to the callers.
* mode is specified only once when creating a sysfs_dirent.
* spurious list_del_init(&sd->s_sibling) dropped from create_dir()
This change is to
* prepare for inode allocation fix.
* separate alloc and init code for synchronization update.
* make dentry/inode initialization more flexible for later changes.
This patch doesn't introduce visible behavior change.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions