diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-07-31 21:11:22 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-02 07:34:46 -0700 |
commit | 70407fad85f2ec87a0cf56057c3267cd3aa22768 (patch) | |
tree | f408c7768f8c0af862c0fd954dba6331554152ff /fs | |
parent | b3582c68920105e29d219714d8a6fbde25a43379 (diff) | |
download | op-kernel-dev-70407fad85f2ec87a0cf56057c3267cd3aa22768.zip op-kernel-dev-70407fad85f2ec87a0cf56057c3267cd3aa22768.tar.gz |
f2fs: add tracepoint for f2fs_direct_IO
This patch adds a tracepoint for f2fs_direct_IO.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/data.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index ec3c886..03313099 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -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; } |