struct dentry * d_find_alias (struct inode * inode);
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.
If the inode has a DCACHE_DISCONNECTED alias, then prefer any other hashed alias over that one.