summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/data.c2
-rw-r--r--fs/f2fs/segment.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index cdb342eeb421..711722018b8e 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -421,6 +421,8 @@ void f2fs_submit_read_bio(struct f2fs_sb_info *sbi, int rw)
if (!io->bio)
return;
+ trace_f2fs_submit_read_bio(sbi->sb, rw, META, io->bio);
+
mutex_lock(&io->io_mutex);
if (io->bio) {
submit_bio(rw, io->bio);
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,
if (type >= META_FLUSH)
rw = WRITE_FLUSH_FUA;
+
+ trace_f2fs_submit_write_bio(sbi->sb, rw, btype, io->bio);
+
if (btype == META)
rw |= REQ_META;
@@ -851,8 +854,6 @@ static void do_submit_bio(struct f2fs_sb_info *sbi,
p->sbi = sbi;
io->bio->bi_end_io = f2fs_end_io_write;
- trace_f2fs_do_submit_bio(sbi->sb, btype, sync, io->bio);
-
if (type == META_FLUSH) {
DECLARE_COMPLETION_ONSTACK(wait);
p->is_sync = true;
OpenPOWER on IntegriCloud