diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-12-23 03:35:21 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-01-09 20:02:25 -0500 |
commit | 3e1c8f125eeea0f8111e2b9131162bfba32c6381 (patch) | |
tree | 07d2fd5840e028e9baece4b8bc552198734eee88 /fs/f2fs/data.c | |
parent | 09eb483e895f36fd002e88c878e9578c359aa468 (diff) |
f2fs: cleanup trace event of f2fs_submit_page_{m,}bio with DECLARE_EVENT_CLASS
This patch adds missing parameter _type_ for trace_f2fs_submit_page_bio, then
use DECLARE_EVENT_CLASS/DEFINE_EVENT_CONDITION pair to cleanup some trace event
code related to f2fs_submit_page_{m,}bio.
Additionally, after we remove redundant code, size of code can be reduced:
text data bss dec hex filename
176787 8712 56 185555 2d4d3 f2fs.ko.org
174408 8648 56 183112 2cb48 f2fs.ko
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 20aa3c355a0e..7953bc279205 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c | |||
@@ -137,7 +137,7 @@ int f2fs_submit_page_bio(struct f2fs_sb_info *sbi, struct page *page, | |||
137 | { | 137 | { |
138 | struct bio *bio; | 138 | struct bio *bio; |
139 | 139 | ||
140 | trace_f2fs_submit_page_bio(page, fio->blk_addr, fio->rw); | 140 | trace_f2fs_submit_page_bio(page, fio->blk_addr, fio->rw, fio->type); |
141 | f2fs_trace_ios(page, fio, 0); | 141 | f2fs_trace_ios(page, fio, 0); |
142 | 142 | ||
143 | /* Allocate a new bio */ | 143 | /* Allocate a new bio */ |
@@ -190,7 +190,7 @@ alloc_new: | |||
190 | f2fs_trace_ios(page, fio, 0); | 190 | f2fs_trace_ios(page, fio, 0); |
191 | 191 | ||
192 | up_write(&io->io_rwsem); | 192 | up_write(&io->io_rwsem); |
193 | trace_f2fs_submit_page_mbio(page, fio->rw, fio->type, fio->blk_addr); | 193 | trace_f2fs_submit_page_mbio(page, fio->blk_addr, fio->rw, fio->type); |
194 | } | 194 | } |
195 | 195 | ||
196 | /* | 196 | /* |