Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254983
b: refs/heads/master
c: 642c937
h: refs/heads/master
i:
  254981: eb85c53
  254979: cad534e
  254975: e591ca2
v: v3
  • Loading branch information
Al Viro committed Jul 18, 2011
1 parent 204218a commit eff5a5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a803b8067e317832d6a251c5b0486e36a4f81922
refs/heads/master: 642c937b4ed2e51d2f2e4c46ab7cd8b5bddf268b
12 changes: 4 additions & 8 deletions trunk/fs/ufs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,12 @@ static struct dentry *ufs_lookup(struct inode * dir, struct dentry *dentry, stru

lock_ufs(dir->i_sb);
ino = ufs_inode_by_name(dir, &dentry->d_name);
if (ino) {
if (ino)
inode = ufs_iget(dir->i_sb, ino);
if (IS_ERR(inode)) {
unlock_ufs(dir->i_sb);
return ERR_CAST(inode);
}
}
unlock_ufs(dir->i_sb);
d_add(dentry, inode);
return NULL;
if (IS_ERR(inode))
return ERR_CAST(inode);
return d_splice_alias(inode, dentry);
}

/*
Expand Down

0 comments on commit eff5a5a

Please sign in to comment.