summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-16 16:47:49 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-09-17 18:54:57 -0700
commit43d504a4fef3ce15d418a9ce8844c1f4bc0050f5 (patch)
tree69fd2bee9231e38e229919cdd775326547a61cf0 /certs
parentf02af2fbc71e38e082de9594f3837563765813de (diff)
xfs: port the defer ops capture and continue to resource capturelog-recovery-defer-capture_2021-09-17
When log recovery tries to recover a transaction that had log intent items attached to it, it has to save certain parts of the transaction state (reservation, dfops chain, inodes with no automatic unlock) so that it can finish single-stepping the recovered transactions before finishing the chains. This is done with the xfs_defer_ops_capture and xfs_defer_ops_continue functions. Right now they open-code this functionality, so let's port this to the formalized resource capture structure that we introduced in the previous patch. This enables us to hold up to two inodes and two buffers during log recovery, the same way we do for regular runtime. With this patch applied, we'll be ready to support atomic extent swap which holds two inodes; and logged xattrs which holds one inode and one xattr leaf buffer. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions