diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-30 14:39:15 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-31 16:03:16 -0400 |
commit | a6ecdfcfba9392f469992dd6016ceafb3ea62123 (patch) | |
tree | 0a818c7e050c3a5aa59852020567fb70a5cdcf47 /fs | |
parent | ec335e91a4f088d8759c1311d0724e609d1c318e (diff) |
untangling do_lookup() - merge d_alloc_and_lookup() callers
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/namei.c b/fs/namei.c index a0f9a0294ff2..1d60fdf01b37 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1188,12 +1188,12 @@ retry: | |||
1188 | } | 1188 | } |
1189 | if (!d_invalidate(dentry)) { | 1189 | if (!d_invalidate(dentry)) { |
1190 | dput(dentry); | 1190 | dput(dentry); |
1191 | dentry = d_alloc_and_lookup(parent, name, nd); | 1191 | dentry = NULL; |
1192 | } | 1192 | } |
1193 | } | 1193 | } |
1194 | } else if (!dentry) { | ||
1195 | dentry = d_alloc_and_lookup(parent, name, nd); | ||
1196 | } | 1194 | } |
1195 | if (!dentry) | ||
1196 | dentry = d_alloc_and_lookup(parent, name, nd); | ||
1197 | l: | 1197 | l: |
1198 | mutex_unlock(&dir->i_mutex); | 1198 | mutex_unlock(&dir->i_mutex); |
1199 | if (IS_ERR(dentry)) | 1199 | if (IS_ERR(dentry)) |