aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-11 00:29:39 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-22 20:18:06 -0500
commit76130ccabcc39f0716691113f739f28a3088e253 (patch)
treef4abd6ea00f6cd26f7912bcec99ae44f0ef0c332 /fs/f2fs/data.c
parent458e6197c37de53f7be0a837644daabb900c3036 (diff)
f2fs: fix the location of tracepoint
We need to get a trace before submit_bio, since its bi_sector is remapped during the submit_bio. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index ebc91778e815..15956fa584de 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -104,11 +104,12 @@ static void __submit_merged_bio(struct f2fs_bio_info *io)
104 rw = fio->rw | fio->rw_flag; 104 rw = fio->rw | fio->rw_flag;
105 105
106 if (is_read_io(rw)) { 106 if (is_read_io(rw)) {
107 submit_bio(rw, io->bio);
108 trace_f2fs_submit_read_bio(io->sbi->sb, rw, fio->type, io->bio); 107 trace_f2fs_submit_read_bio(io->sbi->sb, rw, fio->type, io->bio);
108 submit_bio(rw, io->bio);
109 io->bio = NULL; 109 io->bio = NULL;
110 return; 110 return;
111 } 111 }
112 trace_f2fs_submit_write_bio(io->sbi->sb, rw, fio->type, io->bio);
112 113
113 /* 114 /*
114 * META_FLUSH is only from the checkpoint procedure, and we should wait 115 * META_FLUSH is only from the checkpoint procedure, and we should wait
@@ -122,7 +123,6 @@ static void __submit_merged_bio(struct f2fs_bio_info *io)
122 } else { 123 } else {
123 submit_bio(rw, io->bio); 124 submit_bio(rw, io->bio);
124 } 125 }
125 trace_f2fs_submit_write_bio(io->sbi->sb, rw, fio->type, io->bio);
126 io->bio = NULL; 126 io->bio = NULL;
127} 127}
128 128