diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-05-21 17:07:20 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-08-16 19:06:23 -0700 |
commit | 8e1cb87fc111812b2fcb5aa05d43b698812ef4d5 (patch) | |
tree | 992d7e2a858f54b71d0548201429b72ae92f8e33 /fs | |
parent | b2b0cb03bd7dccfed9948794daafdeb6576c7cb6 (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 5fa9e49ccb87..acb9335e6306 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -1560,10 +1560,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) { |