]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: implement sysfs_get_dentry()
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 19:27:25 +0000 (04:27 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:09 +0000 (16:09 -0700)
commitee7a21d4703c21cb5734a1ed15c833ad11c17c67
treeb3bccd211bb09d43c29a751793ac50d8860b8303
parent1c011f1e63d88cc5c53e50194d4d0494969cd557
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>
fs/sysfs/dir.c
fs/sysfs/sysfs.h