]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sysfs: add sysfs_dirent->s_name
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 18:45:15 +0000 (03:45 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:04 +0000 (16:09 -0700)
commit0c096b507f15397da890051ee73de4266d3941fb
treec6b7d204a493157b3926bdb46500313eee9f9690
parent13b3086d2ea483cbcae5a4236446cecc082a72cf
sysfs: add sysfs_dirent->s_name

Add s_name to sysfs_dirent.  This is to further reduce dependency to
the associated dentry.  Name is copied for directories and symlinks
but not for attributes.

Where possible, name dereferences are converted to use sd->s_name.
sysfs_symlink->link_name and sysfs_get_name() are unused now and
removed.

This change allows symlink to be implemented using sysfs_dirent tree
proper, which is the last remaining dentry-dependent sysfs walk.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/inode.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h
include/linux/sysfs.h