diff options
author | Brian Foster <bfoster@redhat.com> | 2018-05-08 03:38:47 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-09 20:04:02 +0300 |
commit | 2bc5eba8b6957824631205aeffc75db8dbb5426a (patch) | |
tree | 32ce0d12343f8bcf519670d804d285c55d90b246 /fs/xfs/xfs_inode.c | |
parent | f8f2835a9cf300079835e1adb1d90f85033be04c (diff) | |
download | linux-2bc5eba8b6957824631205aeffc75db8dbb5426a.tar.xz |
xfs: defer agfl block frees from deferred ops processing context
Now that AGFL block frees are deferred when dfops is set in the
transaction, start deferring AGFL block frees from contexts that are
known to push the limits of existing log reservations.
The first such context is deferred operation processing itself. This
primarily targets deferred extent frees (such as file extents and
inode chunks), but in doing so covers all allocation operations that
occur in deferred operation processing context.
Update xfs_defer_finish() to set and reset ->t_agfl_dfops across the
processing sequence. This means that any AGFL block frees due to
allocation events result in the addition of new EFIs to the dfops
rather than being processed immediately. xfs_defer_finish() rolls
the transaction at least once more to process the frees of the AGFL
blocks back to the allocation btrees and returns once the AGFL is
rectified.
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_inode.c')
0 files changed, 0 insertions, 0 deletions