[PATCH v3 08/12] zonefs: widen trace event i_ino fields to u64

Jeff Layton
2026-03-04T15:35:13Z

Update zonefs trace event definitions to use u64 instead of
ino_t/unsigned long for inode number fields.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
fs/zonefs/trace.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/fs/zonefs/trace.h b/fs/zonefs/trace.h
index 9969db3a9c7dc9e212ed04a7c256e02fbe73880e..7315a72ca2f6fb8ac34f7aaa9f7f24224bb5e801 100644
--- a/fs/zonefs/trace.h
+++ b/fs/zonefs/trace.h
@@ -25,7 +25,7 @@ TRACE_EVENT(zonefs_zone_mgmt,
TP_ARGS(sb, z, op),
TP_STRUCT__entry(
__field(dev_t, dev)
- __field(ino_t, ino)
+ __field(u64, ino)
__field(enum req_op, op)
__field(sector_t, sector)
__field(sector_t, nr_sectors)
@@ -38,8 +38,8 @@ TRACE_EVENT(zonefs_zone_mgmt,
__entry->sector = z->z_sector;
__entry->nr_sectors = z->z_size >> SECTOR_SHIFT;
),
- TP_printk("bdev=(%d,%d), ino=%lu op=%s, sector=%llu, nr_sectors=%llu",
- show_dev(__entry->dev), (unsigned long)__entry->ino,
+ TP_printk("bdev=(%d,%d), ino=%llu op=%s, sector=%llu, nr_sectors=%llu",
+ show_dev(__entry->dev), __entry->ino,
blk_op_str(__entry->op), __entry->sector,
__entry->nr_sectors
)
@@ -50,7 +50,7 @@ TRACE_EVENT(zonefs_file_dio_append,
TP_ARGS(inode, size, ret),
TP_STRUCT__entry(
__field(dev_t, dev)
- __field(ino_t, ino)
+ __field(u64, ino)
__field(sector_t, sector)
__field(ssize_t, size)
__field(loff_t, wpoffset)
@@ -65,8 +65,8 @@ TRACE_EVENT(zonefs_file_dio_append,
zonefs_inode_zone(inode)->z_wpoffset;
__entry->ret = ret;
),
- TP_printk("bdev=(%d, %d), ino=%lu, sector=%llu, size=%zu, wpoffset=%llu, ret=%zu",
- show_dev(__entry->dev), (unsigned long)__entry->ino,
+ TP_printk("bdev=(%d, %d), ino=%llu, sector=%llu, size=%zu, wpoffset=%llu, ret=%zu",
+ show_dev(__entry->dev), __entry->ino,
__entry->sector, __entry->size, __entry->wpoffset,
__entry->ret
)
@@ -77,7 +77,7 @@ TRACE_EVENT(zonefs_iomap_begin,
TP_ARGS(inode, iomap),
TP_STRUCT__entry(
__field(dev_t, dev)
- __field(ino_t, ino)
+ __field(u64, ino)
__field(u64, addr)
__field(loff_t, offset)
__field(u64, length)
@@ -89,8 +89,8 @@ TRACE_EVENT(zonefs_iomap_begin,
__entry->offset = iomap->offset;
__entry->length = iomap->length;
),
- TP_printk("bdev=(%d,%d), ino=%lu, addr=%llu, offset=%llu, length=%llu",
- show_dev(__entry->dev), (unsigned long)__entry->ino,
+ TP_printk("bdev=(%d,%d), ino=%llu, addr=%llu, offset=%llu, length=%llu",
+ show_dev(__entry->dev), __entry->ino,
__entry->addr, __entry->offset, __entry->length
)
);

--
2.53.0