• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/

Lines Matching refs:alias

301  * d_find_alias - grab a hashed alias of inode
304 * that only a DISCONNECTED alias be returned.
306 * If inode has a hashed alias, or is a directory and has any alias,
307 * acquire the reference to alias and return it. Otherwise return NULL.
308 * Notice that if inode is a directory there can be only one alias and
312 * If the inode has an IS_ROOT, DCACHE_DISCONNECTED alias, then prefer
313 * any other hashed alias over that one unless @want_discon is set,
314 * in which case only return an IS_ROOT, DCACHE_DISCONNECTED alias.
320 struct dentry *alias, *discon_alias=NULL;
328 alias = list_entry(tmp, struct dentry, d_alias);
329 if (S_ISDIR(inode->i_mode) || !d_unhashed(alias)) {
330 if (IS_ROOT(alias) &&
331 (alias->d_flags & DCACHE_DISCONNECTED))
332 discon_alias = alias;
334 __dget_locked(alias);
335 return alias;
997 * If an unhashed alias of "entry" already exists, then we return the
1010 struct dentry *alias;
1020 list_for_each_entry(alias, &inode->i_dentry, d_alias) {
1021 struct qstr *qstr = &alias->d_name;
1025 if (alias->d_parent != entry->d_parent)
1031 dget_locked(alias);
1032 return alias;
1621 static struct dentry *__d_unalias(struct dentry *dentry, struct dentry *alias)
1626 /* If alias and dentry share a parent, then no extra locks required */
1627 if (alias->d_parent == dentry->d_parent)
1632 if (d_isparent(alias, dentry))
1640 if (!mutex_trylock(&alias->d_parent->d_inode->i_mutex))
1642 m2 = &alias->d_parent->d_inode->i_mutex;
1644 d_move_locked(alias, dentry);
1645 ret = alias;
1693 * root directory alias in its place if there is one
1710 struct dentry *alias;
1713 alias = __d_find_alias(inode, 0);
1714 if (alias) {
1715 actual = alias;
1718 if (IS_ROOT(alias)) {
1719 spin_lock(&alias->d_lock);
1720 __d_materialise_dentry(dentry, alias);
1721 __d_drop(alias);
1725 actual = __d_unalias(dentry, alias);
1727 dput(alias);