[PATCH 30/33] xfs: convert xfs_efd_log_format_t typedef to struct

Andrey Albershteyn
2025-12-03T19:10:58Z

Align function arguments to new longer variable type and fix comment in
xlog_print_trans_rud() with wrong xfs_efd_log_format mention.

Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
---
logprint/log_redo.c | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/logprint/log_redo.c b/logprint/log_redo.c
index 5581406d43..b957056c87 100644
--- a/logprint/log_redo.c
+++ b/logprint/log_redo.c
@@ -187,18 +187,20 @@
}

int
-xlog_print_trans_efd(char **ptr, uint len)
+xlog_print_trans_efd(
+ char **ptr,
+ uint len)
{
- const char *item_name = "EFD?";
- xfs_efd_log_format_t *f;
- xfs_efd_log_format_t lbuf;
+ const char *item_name = "EFD?";
+ struct xfs_efd_log_format *f;
+ struct xfs_efd_log_format lbuf;

/* size without extents at end */
- uint core_size = sizeof(xfs_efd_log_format_t);
+ uint core_size = sizeof(struct xfs_efd_log_format);

/*
* memmove to ensure 8-byte alignment for the long longs in
- * xfs_efd_log_format_t structure
+ * xfs_efd_log_format structure
*/
memmove(&lbuf, *ptr, min(core_size, len));
f = &lbuf;
@@ -225,12 +227,12 @@

void
xlog_recover_print_efd(
- struct xlog_recover_item *item)
+ struct xlog_recover_item *item)
{
- const char *item_name = "EFD?";
- xfs_efd_log_format_t *f;
+ const char *item_name = "EFD?";
+ struct xfs_efd_log_format *f;

- f = (xfs_efd_log_format_t *)item->ri_buf[0].iov_base;
+ f = (struct xfs_efd_log_format *)item->ri_buf[0].iov_base;

switch (f->efd_type) {
case XFS_LI_EFD: item_name = "EFD"; break;
@@ -376,7 +378,7 @@

/*
* memmove to ensure 8-byte alignment for the long longs in
- * xfs_efd_log_format_t structure
+ * xfs_rud_log_format structure
*/
memmove(&lbuf, *ptr, min(core_size, len));
f = &lbuf;

--
- Andrey