Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124935
b: refs/heads/master
c: 070c461
h: refs/heads/master
i:
  124933: e73c8a5
  124931: a9f0a7b
  124927: b705b13
v: v3
  • Loading branch information
Christoph Hellwig authored and Niv Sardi committed Dec 4, 2008
1 parent 2ed29de commit 4c06f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 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: b56757becf8bc62292263a24a23cf55edb4be55f
refs/heads/master: 070c4616ec62fc207e2aeef9d0f28af294c651d0
30 changes: 1 addition & 29 deletions trunk/fs/xfs/xfs_trans_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ xfs_trans_iget(
{
int error;
xfs_inode_t *ip;
xfs_inode_log_item_t *iip;

/*
* If the transaction pointer is NULL, just call the normal
Expand Down Expand Up @@ -138,34 +137,7 @@ xfs_trans_iget(
}
ASSERT(ip != NULL);

/*
* Get a log_item_desc to point at the new item.
*/
if (ip->i_itemp == NULL)
xfs_inode_item_init(ip, mp);
iip = ip->i_itemp;
(void) xfs_trans_add_item(tp, (xfs_log_item_t *)(iip));

xfs_trans_inode_broot_debug(ip);

/*
* If the IO lock has been acquired, mark that in
* the inode log item so we'll know to unlock it
* when the transaction commits.
*/
ASSERT(iip->ili_flags == 0);
if (lock_flags & XFS_IOLOCK_EXCL) {
iip->ili_flags |= XFS_ILI_IOLOCKED_EXCL;
} else if (lock_flags & XFS_IOLOCK_SHARED) {
iip->ili_flags |= XFS_ILI_IOLOCKED_SHARED;
}

/*
* Initialize i_transp so we can find it with xfs_inode_incore()
* above.
*/
ip->i_transp = tp;

xfs_trans_ijoin(tp, ip, lock_flags);
*ipp = ip;
return 0;
}
Expand Down

0 comments on commit 4c06f21

Please sign in to comment.