diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-08 21:20:11 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:44:26 -0400 |
commit | a9049376ee05bf966bfe2b081b5071326856890a (patch) | |
tree | efb3cbfc7760537f201bb28dacbb0d39ec39f04c /fs/isofs/namei.c | |
parent | 0c1aa9a952c3608eb17bf990466f1491d1ee8b6c (diff) |
make d_splice_alias(ERR_PTR(err), dentry) = ERR_PTR(err)
... and simplify the living hell out of callers
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/isofs/namei.c')
-rw-r--r-- | fs/isofs/namei.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/fs/isofs/namei.c b/fs/isofs/namei.c index 4fb3e8074fd4..68fa503d877e 100644 --- a/fs/isofs/namei.c +++ b/fs/isofs/namei.c | |||
@@ -183,14 +183,9 @@ struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, struct nam | |||
183 | 1024 + page_address(page)); | 183 | 1024 + page_address(page)); |
184 | __free_page(page); | 184 | __free_page(page); |
185 | 185 | ||
186 | inode = NULL; | 186 | inode = found ? isofs_iget(dir->i_sb, block, offset) : NULL; |
187 | if (found) { | 187 | |
188 | inode = isofs_iget(dir->i_sb, block, offset); | ||
189 | if (IS_ERR(inode)) { | ||
190 | mutex_unlock(&sbi->s_mutex); | ||
191 | return ERR_CAST(inode); | ||
192 | } | ||
193 | } | ||
194 | mutex_unlock(&sbi->s_mutex); | 188 | mutex_unlock(&sbi->s_mutex); |
189 | |||
195 | return d_splice_alias(inode, dentry); | 190 | return d_splice_alias(inode, dentry); |
196 | } | 191 | } |