Skip to content

Commit

Permalink
untangling do_lookup() - merge d_alloc_and_lookup() callers
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Mar 31, 2012
1 parent ec335e9 commit a6ecdfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1188,12 +1188,12 @@ static int do_lookup(struct nameidata *nd, struct qstr *name,
}
if (!d_invalidate(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:
mutex_unlock(&dir->i_mutex);
if (IS_ERR(dentry))
Expand Down

0 comments on commit a6ecdfc

Please sign in to comment.