[PATCH 06/14] sysfs: add sysfs_dirent->s_parent

2007-04-08 Thread Tejun Heo
Add sysfs_dirent->s_parent. With this patch, each sd points to and holds a reference to its parent. This allows walking sysfs tree without referencing sd->s_dentry which can go away anytime if the user doesn't control when it's deleted. sd->s_parent is initialized and parent is referenced in

[PATCH 06/14] sysfs: add sysfs_dirent-s_parent

2007-04-08 Thread Tejun Heo
Add sysfs_dirent-s_parent. With this patch, each sd points to and holds a reference to its parent. This allows walking sysfs tree without referencing sd-s_dentry which can go away anytime if the user doesn't control when it's deleted. sd-s_parent is initialized and parent is referenced in

[PATCH 06/14] sysfs: add sysfs_dirent->s_parent

2007-04-07 Thread Tejun Heo
Add sysfs_dirent->s_parent. With this patch, each sd points to and holds a reference to its parent. This allows walking sysfs tree without referencing sd->s_dentry which can go away anytime if the user doesn't control when it's deleted. sd->s_parent is initialized and parent is referenced in

[PATCH 06/14] sysfs: add sysfs_dirent-s_parent

2007-04-07 Thread Tejun Heo
Add sysfs_dirent-s_parent. With this patch, each sd points to and holds a reference to its parent. This allows walking sysfs tree without referencing sd-s_dentry which can go away anytime if the user doesn't control when it's deleted. sd-s_parent is initialized and parent is referenced in