Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108313
b: refs/heads/master
c: 0b1f917
h: refs/heads/master
i:
  108311: a19dbbc
v: v3
  • Loading branch information
Christoph Hellwig authored and Lachlan McIlroy committed Aug 13, 2008
1 parent 1d422a7 commit 523a1bd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 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: 604323ca760beebf00a07153706dcbe7128324e0
refs/heads/master: 0b1f917730dc2276fadbd9813ac3666abd7b1cbd
2 changes: 1 addition & 1 deletion trunk/fs/xfs/quota/xfs_dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ xfs_qm_dqalloc(
* when it unlocks the inode. Since we want to keep the quota
* inode around, we bump the vnode ref count now.
*/
VN_HOLD(VFS_I(quotip));
IHOLD(quotip);

xfs_trans_ijoin(tp, quotip, XFS_ILOCK_EXCL);
nmaps = 1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/xfs/xfs_bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -4000,7 +4000,7 @@ xfs_bmap_add_attrfork(
ip->i_d.di_aformat = XFS_DINODE_FMT_EXTENTS;
}
ASSERT(ip->i_d.di_anextents == 0);
VN_HOLD(VFS_I(ip));
IHOLD(ip);
xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL);
xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
switch (ip->i_d.di_format) {
Expand Down
10 changes: 3 additions & 7 deletions trunk/fs/xfs/xfs_dfrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,11 @@ xfs_swap_extents(
break;
}

/*
* Increment vnode ref counts since xfs_trans_commit &
* xfs_trans_cancel will both unlock the inodes and
* decrement the associated ref counts.
*/
VN_HOLD(vp);
VN_HOLD(tvp);

IHOLD(ip);
xfs_trans_ijoin(tp, ip, lock_flags);

IHOLD(tip);
xfs_trans_ijoin(tp, tip, lock_flags);

xfs_trans_log_inode(tp, ip, ilf_fields);
Expand Down

0 comments on commit 523a1bd

Please sign in to comment.