diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-09-19 15:00:54 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-10-11 21:15:08 -0500 |
commit | ddc3415aba1cb2f86d1fcad720cea834ee178f54 (patch) | |
tree | 7a31a932ce0b7080557be062ccc7c3c0e181b140 /fs/xfs/xfs_inode_item.c | |
parent | 23bb0be1a237c8732ce1a43140e5cb103a676b92 (diff) | |
download | linux-ddc3415aba1cb2f86d1fcad720cea834ee178f54.tar.gz linux-ddc3415aba1cb2f86d1fcad720cea834ee178f54.tar.bz2 linux-ddc3415aba1cb2f86d1fcad720cea834ee178f54.zip |
xfs: simplify xfs_trans_ijoin* again
There is no reason to keep a reference to the inode even if we unlock
it during transaction commit because we never drop a reference between
the ijoin and commit. Also use this fact to merge xfs_trans_ijoin_ref
back into xfs_trans_ijoin - the third argument decides if an unlock
is needed now.
I'm actually starting to wonder if allowing inodes to be unlocked
at transaction commit really is worth the effort. The only real
benefit is that they can be unlocked earlier when commiting a
synchronous transactions, but that could be solved by doing the
log force manually after the unlock, too.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode_item.c')
-rw-r--r-- | fs/xfs/xfs_inode_item.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c index 588406dc6a35..8704a99241d7 100644 --- a/fs/xfs/xfs_inode_item.c +++ b/fs/xfs/xfs_inode_item.c @@ -658,10 +658,8 @@ xfs_inode_item_unlock( lock_flags = iip->ili_lock_flags; iip->ili_lock_flags = 0; - if (lock_flags) { + if (lock_flags) xfs_iunlock(ip, lock_flags); - IRELE(ip); - } } /* |