@@ -1032,6 +1032,7 @@ TRACE_EVENT(f2fs_direct_IO_enter,
__field(ino_t, ino)
__field(loff_t, ki_pos)
__field(int, ki_flags)
+ __field(u16, ki_hint)
__field(u16, ki_ioprio)
__field(unsigned long, len)
__field(int, rw)
@@ -1042,16 +1043,19 @@ TRACE_EVENT(f2fs_direct_IO_enter,
__entry->ino = inode->i_ino;
__entry->ki_pos = iocb->ki_pos;
__entry->ki_flags = iocb->ki_flags;
+ __entry->ki_hint =
+ file_inode(iocb->ki_filp)->i_write_hint;
__entry->ki_ioprio = iocb->ki_ioprio;
__entry->len = len;
__entry->rw = rw;
),
- TP_printk("dev = (%d,%d), ino = %lu pos = %lld len = %lu ki_flags = %x ki_ioprio = %x rw = %d",
+ TP_printk("dev = (%d,%d), ino = %lu pos = %lld len = %lu ki_flags = %x ki_hint = %x ki_ioprio = %x rw = %d",
show_dev_ino(__entry),
__entry->ki_pos,
__entry->len,
__entry->ki_flags,
+ __entry->ki_hint,
__entry->ki_ioprio,
__entry->rw)
);
This patch restores code that was removed by commit 41d36a9f3e53 ("fs: remove kiocb.ki_hint"). Cc: Jaegeuk Kim <jaegeuk@kernel.org> Cc: Chao Yu <chao@kernel.org> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> --- include/trace/events/f2fs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)