diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-09-26 03:39:49 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-10-07 18:40:28 +0300 |
commit | 4f9a60c48078c0efa3459678fa8d6e050e8ada5d (patch) | |
tree | 650b004e846bebd801086c945e260dadff063d57 /fs/xfs/libxfs/xfs_refcount_btree.c | |
parent | e6fff81e487089e47358a028526a9f63cdbcd503 (diff) | |
download | linux-4f9a60c48078c0efa3459678fa8d6e050e8ada5d.tar.xz |
xfs: xfs_defer_capture should absorb remaining block reservations
When xfs_defer_capture extracts the deferred ops and transaction state
from a transaction, it should record the remaining block reservations so
that when we continue the dfops chain, we can reserve the same number of
blocks to use. We capture the reservations for both data and realtime
volumes.
This adds the requirement that every log intent item recovery function
must be careful to reserve enough blocks to handle both itself and all
defer ops that it can queue. On the other hand, this enables us to do
away with the handwaving block estimation nonsense that was going on in
xlog_finish_defer_ops.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_refcount_btree.c')
0 files changed, 0 insertions, 0 deletions