xfs: xfs_defer_capture should absorb remaining transaction reservation
When xfs_defer_capture extracts the deferred ops and transaction state from a transaction, it should record the transaction reservation type from the old transaction so that when we continue the dfops chain, we still use the same reservation parameters. Doing this means that the log item recovery functions get to determine the transaction reservation instead of abusing tr_itruncate in yet another part of xfs. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -79,6 +79,9 @@ struct xfs_defer_capture {
|
||||
/* Block reservations for the data and rt devices. */
|
||||
unsigned int dfc_blkres;
|
||||
unsigned int dfc_rtxres;
|
||||
|
||||
/* Log reservation saved from the transaction. */
|
||||
unsigned int dfc_logres;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user