alistair23-linux/fs/sysfs
Tejun Heo 53e0ae9269 sysfs: implement sysfs_get_dentry()
Some sysfs operations require dentry and inode.  sysfs_get_dentry()
looks up and gets dentry for the specified sysfs_dirent.  It finds the
first ancestor with dentry attached and starts looking up dentries
from there.

Looking up from the nearest ancestor is necessary to support shadowed
directories because we can't reliably lookup dentry for one of the
shadows.  Dentries for each shadow will be pinned in memory such that
they can serve as the starting point for dentry lookup.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-07-11 16:09:09 -07:00
..
bin.c sysfs: make kobj point to sysfs_dirent instead of dentry 2007-07-11 16:09:08 -07:00
dir.c sysfs: implement sysfs_get_dentry() 2007-07-11 16:09:09 -07:00
file.c sysfs: restructure add/remove paths and fix inode update 2007-07-11 16:09:09 -07:00
group.c sysfs: make kobj point to sysfs_dirent instead of dentry 2007-07-11 16:09:08 -07:00
inode.c sysfs: move sysfs_drop_dentry() to dir.c and make it static 2007-07-11 16:09:09 -07:00
Makefile
mount.c sysfs: rename sysfs_dirent->s_type to s_flags and make room for flags 2007-07-11 16:09:08 -07:00
symlink.c sysfs: restructure add/remove paths and fix inode update 2007-07-11 16:09:09 -07:00
sysfs.h sysfs: implement sysfs_get_dentry() 2007-07-11 16:09:09 -07:00