xfs: formalize the process of holding onto resources across a defer roll
authorDarrick J. Wong <djwong@kernel.org>
Fri, 17 Sep 2021 00:28:06 +0000 (17:28 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 14 Oct 2021 16:19:31 +0000 (09:19 -0700)
commitc5db9f937b2971c78d6c6bbaa61a6450efa8b845
treecd2dc195ffe7d1962446d4c0195158bc9899f68e
parentc30a0cbd07ecc0eec7b3cd568f7b1c7bb7913f93
xfs: formalize the process of holding onto resources across a defer roll

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>
fs/xfs/libxfs/xfs_defer.c
fs/xfs/libxfs/xfs_defer.h
fs/xfs/xfs_trans.h