d_find_alias

Name

d_find_alias --  grab a hashed alias of inode

Synopsis

struct dentry * d_find_alias (struct inode * inode);

Arguments

inode

inode in question

Description

If inode has a hashed alias - acquire the reference to alias and return it. Otherwise return NULL. Notice that if inode is a directory there can be only one alias and it can be unhashed only if it has no children.