Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94997
b: refs/heads/master
c: eca450b
h: refs/heads/master
i:
  94995: ec0267f
v: v3
  • Loading branch information
Christoph Hellwig authored and Lachlan McIlroy committed Apr 29, 2008
1 parent 9a6c637 commit 2e2f3ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 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: d4377d84189349357e1812eaff6d0504766eea06
refs/heads/master: eca450b7c23f804597b87085b2a05bfc5b3ccb8b
22 changes: 15 additions & 7 deletions trunk/fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1636,8 +1636,7 @@ xfs_lookup(
struct xfs_name *name,
xfs_inode_t **ipp)
{
xfs_inode_t *ip;
xfs_ino_t e_inum;
xfs_ino_t inum;
int error;
uint lock_mode;

Expand All @@ -1647,12 +1646,21 @@ xfs_lookup(
return XFS_ERROR(EIO);

lock_mode = xfs_ilock_map_shared(dp);
error = xfs_dir_lookup_int(dp, lock_mode, name, &e_inum, &ip);
if (!error) {
*ipp = ip;
xfs_itrace_ref(ip);
}
error = xfs_dir_lookup(NULL, dp, name, &inum);
xfs_iunlock_map_shared(dp, lock_mode);

if (error)
goto out;

error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp, 0);
if (error)
goto out;

xfs_itrace_ref(*ipp);
return 0;

out:
*ipp = NULL;
return error;
}

Expand Down

0 comments on commit 2e2f3ac

Please sign in to comment.