diff options
author | 2007-06-14 03:45:18 +0900 | |
---|---|---|
committer | 2007-07-11 16:09:07 -0700 | |
commit | 0c73f18b7d95de8a007039337063a770b5fc8e7a (patch) | |
tree | cf3b6f274139b170136219918dd679f2397e69f6 /fs/sysfs/file.c | |
parent | sysfs: slim down sysfs_dirent->s_active (diff) | |
download | wireguard-linux-0c73f18b7d95de8a007039337063a770b5fc8e7a.tar.xz wireguard-linux-0c73f18b7d95de8a007039337063a770b5fc8e7a.zip |
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>
Diffstat (limited to 'fs/sysfs/file.c')
0 files changed, 0 insertions, 0 deletions