linux/fs/sysfs
Tejun Heo 0c73f18b7d sysfs: use singly-linked list for sysfs_dirent tree
Make sysfs_dirent use singly linked list for its tree structure.
sysfs_link_sibling() and sysfs_unlink_sibling() functions are added to
handle simpler cases.  It adds some complexity and cpu cycle overhead
but reduced memory footprint is worthwhile on big machines.

This change reduces the sizeof sysfs_dirent from 104 to 88 on 64bit
and from 60 to 52 on 32bit.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-07-11 16:09:07 -07:00
..
bin.c sysfs: kill unnecessary attribute->owner 2007-07-11 16:09:06 -07:00
dir.c sysfs: use singly-linked list for sysfs_dirent tree 2007-07-11 16:09:07 -07:00
file.c sysfs: kill unnecessary attribute->owner 2007-07-11 16:09:06 -07:00
group.c security: prevent permission checking of file removal via sysfs_remove_group() 2007-04-27 10:57:33 -07:00
inode.c sysfs: use singly-linked list for sysfs_dirent tree 2007-07-11 16:09:07 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c sysfs: use singly-linked list for sysfs_dirent tree 2007-07-11 16:09:07 -07:00
symlink.c sysfs: reimplement symlink using sysfs_dirent tree 2007-07-11 16:09:04 -07:00
sysfs.h sysfs: use singly-linked list for sysfs_dirent tree 2007-07-11 16:09:07 -07:00