xfs: remove i_transp
Remove the transaction pointer in the inode. It's only used to avoid passing down an argument in the bmap code, and for a few asserts in the transaction code right now. Also use the local variable ip in a few more places in xfs_inode_item_unlock, so that it isn't only used for debug builds after the above change. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
@@ -632,13 +632,8 @@ xfs_inode_item_unlock(
|
||||
struct xfs_inode *ip = iip->ili_inode;
|
||||
unsigned short lock_flags;
|
||||
|
||||
ASSERT(iip->ili_inode->i_itemp != NULL);
|
||||
ASSERT(xfs_isilocked(iip->ili_inode, XFS_ILOCK_EXCL));
|
||||
|
||||
/*
|
||||
* Clear the transaction pointer in the inode.
|
||||
*/
|
||||
ip->i_transp = NULL;
|
||||
ASSERT(ip->i_itemp != NULL);
|
||||
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
|
||||
|
||||
/*
|
||||
* If the inode needed a separate buffer with which to log
|
||||
@@ -664,8 +659,8 @@ xfs_inode_item_unlock(
|
||||
lock_flags = iip->ili_lock_flags;
|
||||
iip->ili_lock_flags = 0;
|
||||
if (lock_flags) {
|
||||
xfs_iunlock(iip->ili_inode, lock_flags);
|
||||
IRELE(iip->ili_inode);
|
||||
xfs_iunlock(ip, lock_flags);
|
||||
IRELE(ip);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user