• Li Zefan's avatar
    tracing: Convert some ext4 events to DEFINE_TRACE · b5eb34c3
    Li Zefan authored
    Use DECLARE_EVENT_CLASS to remove duplicate code:
    
       text    data     bss     dec     hex filename
     294695    6104     340  301139   49853 fs/ext4/ext4.o.old
     289983    6104     324  296411   485db fs/ext4/ext4.o
    
    5 events are convertd:
    
      ext4__write_begin: ext4_write_begin, ext4_da_write_begin
      ext4__write_end: ext4_{ordered, writeback, journalled}_write_end
    
    No change in functionality.
    Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
    Cc: Theodore Ts'o <tytso@mit.edu>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <4B0E2938.2040708@cn.fujitsu.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    b5eb34c3
ext4.h 22.2 KB