• T
    sysfs: implement sysfs_get_dentry() · 53e0ae92
    Tejun Heo 提交于
    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: NTejun Heo <htejun@gmail.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    53e0ae92
sysfs.h 4.0 KB