• Li Zefan's avatar
    tracing: Convert some jbd2 events to DEFINE_EVENT · 071688f3
    Li Zefan authored
    Use DECLARE_EVENT_CLASS to remove duplicate code:
    
       text    data     bss     dec     hex filename
      34903    1693     448   37044    90b4 fs/jbd2/journal.o.old
      31931    1693     416   34040    84f8 fs/jbd2/journal.o
    
    Four events are converted:
    
      jbd2_commit: jbd2_start_commit,
                   jbd2_commit_{locking, flushing, logging}
    
    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: <4B0E290F.7030909@cn.fujitsu.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    071688f3
jbd2.h 5.04 KB