]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit617d079ba58665e986db1764e7fc7a5ddcc9d63b
treecd2dc195ffe7d1962446d4c0195158bc9899f68e
parent89b525b2144e58f437116f74c84383ac76e43c9e
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