summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-07-26 02:46:10 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2014-07-30 23:13:36 +0200
commit24a9ee0fa3d40415765d2d9f6064930d72ad8b5a (patch)
tree15686187464f922155ccaad7891f73821c766ac7 /fs/f2fs
parentf2fs: avoid retrying wrong recovery routine when error was occurred (diff)
downloadlinux-24a9ee0fa3d40415765d2d9f6064930d72ad8b5a.tar.xz
linux-24a9ee0fa3d40415765d2d9f6064930d72ad8b5a.zip
f2fs: add tracepoint for f2fs_issue_flush
This patch adds a tracepoint for f2fs_issue_flush. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/segment.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index e016b97be2ac..5a53a0ac6e4f 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -239,6 +239,9 @@ int f2fs_issue_flush(struct f2fs_sb_info *sbi)
struct flush_cmd_control *fcc = SM_I(sbi)->cmd_control_info;
struct flush_cmd cmd;
+ trace_f2fs_issue_flush(sbi->sb, test_opt(sbi, NOBARRIER),
+ test_opt(sbi, FLUSH_MERGE));
+
if (test_opt(sbi, NOBARRIER))
return 0;