diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-01-16 10:12:03 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-04 09:31:12 -0800 |
commit | 600e0c0a1282d1911580ce2d500fac345aaf6e9b (patch) | |
tree | 6f5bb9c0494686bfb4f785f1d64a62f800d11e63 /fs | |
parent | 025cbbf05d025fc15fca85998f6d92ec5751e177 (diff) |
xfs: remove unnecessary inode-transaction roll
Remove the transaction roll at the end of the loop in
xfs_itruncate_extents_flags. xfs_defer_finish takes care of rolling the
transaction as needed and reattaching the inode, which means we already
start each loop with a clean transaction.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 73511b003650..ea855df82a33 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -1571,10 +1571,6 @@ xfs_itruncate_extents_flags( error = xfs_defer_finish(&tp); if (error) goto out; - - error = xfs_trans_roll_inode(&tp, ip); - if (error) - goto out; } if (whichfork == XFS_DATA_FORK) { |