[PATCH 23/33] xfs: convert xfs_buf_log_format_t typedef to struct

Andrey Albershteyn
2025-12-03T19:09:53Z

Convert xfs_buf_log_format_t to struct and retab arguments for new
longer type.

Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
---
include/xfs_trans.h | 10 +++++-----
logprint/log_print_all.c | 18 +++++++++---------
2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/include/xfs_trans.h b/include/xfs_trans.h
index d7d3904119..a3e8a000c9 100644
--- a/include/xfs_trans.h
+++ b/include/xfs_trans.h
@@ -46,11 +46,11 @@
};

typedef struct xfs_buf_log_item {
- xfs_log_item_t bli_item; /* common item structure */
- struct xfs_buf *bli_buf; /* real buffer pointer */
- unsigned int bli_flags; /* misc flags */
- unsigned int bli_recur; /* recursion count */
- xfs_buf_log_format_t __bli_format; /* in-log header */
+ xfs_log_item_t bli_item; /* common item structure */
+ struct xfs_buf *bli_buf; /* real buffer pointer */
+ unsigned int bli_flags; /* misc flags */
+ unsigned int bli_recur; /* recursion count */
+ struct xfs_buf_log_format __bli_format; /* in-log header */
} xfs_buf_log_item_t;

#define XFS_BLI_DIRTY (1<<0)
diff --git a/logprint/log_print_all.c b/logprint/log_print_all.c
index 39946f32d4..bbea6a8f07 100644
--- a/logprint/log_print_all.c
+++ b/logprint/log_print_all.c
@@ -68,17 +68,17 @@

STATIC void
xlog_recover_print_buffer(
- struct xlog_recover_item *item)
+ struct xlog_recover_item *item)
{
- xfs_agi_t *agi;
- xfs_agf_t *agf;
- xfs_buf_log_format_t *f;
- char *p;
- int len, num, i;
- xfs_daddr_t blkno;
- struct xfs_disk_dquot *ddq;
+ xfs_agi_t *agi;
+ xfs_agf_t *agf;
+ struct xfs_buf_log_format *f;
+ char *p;
+ int len, num, i;
+ xfs_daddr_t blkno;
+ struct xfs_disk_dquot *ddq;

- f = (xfs_buf_log_format_t *)item->ri_buf[0].iov_base;
+ f = (struct xfs_buf_log_format*)item->ri_buf[0].iov_base;
printf(" ");
ASSERT(f->blf_type == XFS_LI_BUF);
printf(_("BUF: #regs:%d start blkno:0x%llx len:%d bmap size:%d flags:0x%x\n"),

--
- Andrey