]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: add helpers to compute log item overhead
authorDarrick J. Wong <djwong@kernel.org>
Tue, 1 Jul 2025 17:45:12 +0000 (10:45 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Fri, 18 Jul 2025 14:04:58 +0000 (16:04 +0200)
commit4c6a63fdb9d45fed16f16aa044ab47ec497ad03f
tree9a81b22e879e10bc8f158c935945e16e5aea796e
parent8ccf3002f5f71ba0b0919e6aca82e962e222ccb1
libxfs: add helpers to compute log item overhead

Add selected helpers to estimate the transaction reservation required to
write various log intent and buffer items to the log.  These helpers
will be used by the online repair code for more precise estimations of
how much work can be done in a single transaction.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
libxfs/defer_item.c
libxfs/defer_item.h