]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: cleanup trace event of f2fs_submit_page_{m,}bio with DECLARE_EVENT_CLASS
authorChao Yu <chao2.yu@samsung.com>
Tue, 23 Dec 2014 08:35:21 +0000 (16:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 10 Jan 2015 01:02:25 +0000 (17:02 -0800)
commit3e1c8f125eeea0f8111e2b9131162bfba32c6381
tree07d2fd5840e028e9baece4b8bc552198734eee88
parent09eb483e895f36fd002e88c878e9578c359aa468
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>
fs/f2fs/data.c
include/trace/events/f2fs.h