Skip to contentSkip to conversation

f2fs: add tracepoint for f2fs_direct_IO

PATCH In review Chao Yu 1 participant 1 message Jul 31, 2014

Subsystems (3)
lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/2 f2fs: add tracepoint for f2fs_direct_IO

This patch adds a tracepoint for f2fs_direct_IO.

---
 fs/f2fs/data.c              |  5 ++++
 include/trace/events/f2fs.h | 63 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
fs/f2fs/data.c +5 -0
index ec3c886..03313099 100644
@@ -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