]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: formalize the process of holding onto resources across a defer roll
authorDarrick J. Wong <djwong@kernel.org>
Thu, 28 Apr 2022 19:39:02 +0000 (15:39 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 28 Apr 2022 19:39:02 +0000 (15:39 -0400)
commitb445674ebdeff77e36eb3b57eb9bc80ff3d679d3
tree74b26dbfe853b5b2c1659a41b18081858d9fcc7d
parent76bbe2c2b8f7ef6fcc2ef00889aa1ecfe89351d5
xfs: formalize the process of holding onto resources across a defer roll

Source kernel commit: c5db9f937b2971c78d6c6bbaa61a6450efa8b845

Transaction users are allowed to flag up to two buffers and two inodes
for ownership preservation across a deferred transaction roll.  Hoist
the variables and code responsible for this out of xfs_defer_trans_roll
so that we can use it for the defer capture mechanism.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_trans.h
libxfs/xfs_defer.c
libxfs/xfs_defer.h