f2fs: add tracepoint for f2fs_direct_IO
Subsystems (3)
PATCH 1/2 f2fs: add tracepoint for f2fs_direct_IO
This patch adds a tracepoint for f2fs_direct_IO.
Signed-off-by Chao Yu <[email protected]>
--- fs/f2fs/data.c | 5 ++++ include/trace/events/f2fs.h | 63 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+)
fs/f2fs/data.c +5 -0
@@ -1086,9 +1086,14 @@ static ssize_t f2fs_direct_IO(int rw, struct kiocb *iocb,/* clear fsync mark to recover these blocks */ fsync_mark_clear (F2FS_SB (inode->i_sb), inode->i_ino); +trace_f2fs_direct_IO_enter (inode, offset, count, rw); + err =blockdev_direct_IO (rw, iocb, inode, iter, offset, get_data_block);if (err <0 && (rw &WRITE ))f2fs_write_failed (mapping, offset + count); + +trace_f2fs_direct_IO_exit (inode, offset, count, rw, err); +return err; }
include/trace/events/f2fs.h +63 -0
69 lines not on this page · raw message
Signature · 10 lines
2.0.1.474.g72c7794 ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk