diff options
author | Chao Yu <chao2.yu@samsung.com> | 2013-11-23 22:36:42 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-12-22 20:18:02 -0500 |
commit | d4d288bc72c020d335868ce217695c4d5dfd74d0 (patch) | |
tree | 9c759f1832eee839d548f5bf0dacf515220f6b58 /fs/f2fs/segment.c | |
parent | 87b8872d5b4a8f9f61123ab913aff4f6047d8b53 (diff) |
f2fs: adds a tracepoint for f2fs_submit_read_bio
This patch adds a tracepoint for f2fs_submit_read_bio.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
[Jaegeuk Kim: integrate tracepoints of f2fs_submit_read(_write)_bio]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index d42426dc3706..a1acaa025bde 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c | |||
@@ -844,6 +844,9 @@ static void do_submit_bio(struct f2fs_sb_info *sbi, | |||
844 | 844 | ||
845 | if (type >= META_FLUSH) | 845 | if (type >= META_FLUSH) |
846 | rw = WRITE_FLUSH_FUA; | 846 | rw = WRITE_FLUSH_FUA; |
847 | |||
848 | trace_f2fs_submit_write_bio(sbi->sb, rw, btype, io->bio); | ||
849 | |||
847 | if (btype == META) | 850 | if (btype == META) |
848 | rw |= REQ_META; | 851 | rw |= REQ_META; |
849 | 852 | ||
@@ -851,8 +854,6 @@ static void do_submit_bio(struct f2fs_sb_info *sbi, | |||
851 | p->sbi = sbi; | 854 | p->sbi = sbi; |
852 | io->bio->bi_end_io = f2fs_end_io_write; | 855 | io->bio->bi_end_io = f2fs_end_io_write; |
853 | 856 | ||
854 | trace_f2fs_do_submit_bio(sbi->sb, btype, sync, io->bio); | ||
855 | |||
856 | if (type == META_FLUSH) { | 857 | if (type == META_FLUSH) { |
857 | DECLARE_COMPLETION_ONSTACK(wait); | 858 | DECLARE_COMPLETION_ONSTACK(wait); |
858 | p->is_sync = true; | 859 | p->is_sync = true; |