summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_rtalloc.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2020-09-16 06:44:46 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2020-09-21 19:54:29 +0300
commit6dd379c7fa81ea08f44a567be79b29af3bc6af78 (patch)
treeda43d41d66d8b74d25c91bb94794c2427a6bbdce /fs/xfs/xfs_rtalloc.c
parentb96cb835e37c2ca03aaceef9555ec9047a422d91 (diff)
downloadlinux-6dd379c7fa81ea08f44a567be79b29af3bc6af78.tar.xz
xfs: drop extra transaction roll from inode extent truncate
The inode extent truncate path unmaps extents from the inode block mapping, finishes deferred ops to free the associated extents and then explicitly rolls the transaction before processing the next extent. The latter extent roll is spurious as xfs_defer_finish() always returns a clean transaction and automatically relogs inodes attached to the transaction (with lock_flags == 0). This can unnecessarily increase the number of log ticket regrants that occur during a long running truncate operation. Remove the explicit transaction roll. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
0 files changed, 0 insertions, 0 deletions