diff options
author | Tejun Heo <htejun@gmail.com> | 2007-06-14 04:27:25 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 16:09:09 -0700 |
commit | 53e0ae92690c52eceb997905d85fbb42de5fff63 (patch) | |
tree | b3bccd211bb09d43c29a751793ac50d8860b8303 /drivers | |
parent | a0edd7c848945a75e2f41673f43bc37d0a5fed15 (diff) |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions