untangling do_lookup() - merge d_alloc_and_lookup() callers
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
ec335e91a4
commit
a6ecdfcfba
1 changed files with 3 additions and 3 deletions
|
@ -1188,12 +1188,12 @@ retry:
|
||||||
}
|
}
|
||||||
if (!d_invalidate(dentry)) {
|
if (!d_invalidate(dentry)) {
|
||||||
dput(dentry);
|
dput(dentry);
|
||||||
dentry = d_alloc_and_lookup(parent, name, nd);
|
dentry = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!dentry) {
|
|
||||||
dentry = d_alloc_and_lookup(parent, name, nd);
|
|
||||||
}
|
}
|
||||||
|
if (!dentry)
|
||||||
|
dentry = d_alloc_and_lookup(parent, name, nd);
|
||||||
l:
|
l:
|
||||||
mutex_unlock(&dir->i_mutex);
|
mutex_unlock(&dir->i_mutex);
|
||||||
if (IS_ERR(dentry))
|
if (IS_ERR(dentry))
|
||||||
|
|
Loading…
Add table
Reference in a new issue