]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add helpers to compute transaction reservation for finishing intent items
authorDarrick J. Wong <djwong@kernel.org>
Tue, 1 Jul 2025 17:45:11 +0000 (10:45 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 15 Jul 2025 05:12:03 +0000 (22:12 -0700)
commit1705e1fabf772c242f8db1a2d4a43e1afe1d0fa2
treefc4e8def8809ef2dc58d5c248a6bfa828795ab9a
parentd0884c436c82dddbf5f5ef57acfbf784ff7f7832
xfs: add helpers to compute transaction reservation for finishing intent items

Source kernel commit: 805f89881252a9aee30799b8a395deec79c13414

In the transaction reservation code, hoist the logic that computes the
reservation needed to finish one log intent item into separate helper
functions.  These will be used in subsequent patches to estimate the
number of blocks that an online repair can commit to reaping in the same
transaction as the change committing the new data structure.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: John Garry <john.g.garry@oracle.com>
libxfs/xfs_trans_resv.c
libxfs/xfs_trans_resv.h