diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-02-19 17:01:47 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-06-01 21:16:31 -0700 |
commit | 87a2c1f428a65d0ff5a19e2f5c2a989972cf645c (patch) | |
tree | d4457ab0181cad274689612dab3d85fc62c8fad5 | |
parent | 7f74a19f08b76556211faeab4cf2dd9b2cc4ee7f (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>
-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 0e2ef3f56be4..b6918fdd6141 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -1544,10 +1544,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) { |