[PATCH 32/33] xfs: convert xfs_extent_t typedef to struct

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

logprint/log_redo.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/logprint/log_redo.c b/logprint/log_redo.c
index cabf5ad470..cdd6e8b763 100644
--- a/logprint/log_redo.c
+++ b/logprint/log_redo.c
@@ -71,7 +71,7 @@
const char *item_name = "EFI?";
struct xfs_efi_log_format *src_f, *f = NULL;
uint dst_len;
- xfs_extent_t *ex;
+ struct xfs_extent *ex;
int i;
int error = 0;
int core_size = offsetof(
@@ -141,7 +141,7 @@
{
const char *item_name = "EFI?";
struct xfs_efi_log_format *f, *src_f;
- xfs_extent_t *ex;
+ struct xfs_extent *ex;
int i;
uint src_len, dst_len;

@@ -154,7 +154,7 @@
* Need to convert to native format.
*/
dst_len = sizeof(struct xfs_efi_log_format) +
- (src_f->efi_nextents) * sizeof(xfs_extent_t);
+ (src_f->efi_nextents) * sizeof(struct xfs_extent);
if ((f = (struct xfs_efi_log_format *)malloc(dst_len)) == NULL) {
fprintf(stderr, _("%s: xlog_recover_print_efi: malloc failed\n"),
progname);

--
- Andrey