diff options
author | Jan Kara <jack@suse.cz> | 2012-03-13 20:41:04 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-03-13 20:41:04 +0100 |
commit | 24bcc89c7e7c64982e6192b4952a0a92379fc341 (patch) | |
tree | 0661b6c83fa9bb681f3aa32264323ce96c264958 /include/trace | |
parent | ext4: check for zero length extent (diff) | |
download | linux-24bcc89c7e7c64982e6192b4952a0a92379fc341.tar.xz linux-24bcc89c7e7c64982e6192b4952a0a92379fc341.zip |
jbd2: split updating of journal superblock and marking journal empty
There are three case of updating journal superblock. In the first case, we want
to mark journal as empty (setting s_sequence to 0), in the second case we want
to update log tail, in the third case we want to update s_errno. Split these
cases into separate functions. It makes the code slightly more straightforward
and later patches will make the distinction even more important.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/jbd2.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h index ae59bc207d70..e05a362bf3f1 100644 --- a/include/trace/events/jbd2.h +++ b/include/trace/events/jbd2.h @@ -236,25 +236,21 @@ TRACE_EVENT(jbd2_cleanup_journal_tail, __entry->block_nr, __entry->freed) ); -TRACE_EVENT(jbd2_update_superblock_end, +TRACE_EVENT(jbd2_write_superblock, - TP_PROTO(journal_t *journal, int wait), + TP_PROTO(journal_t *journal), - TP_ARGS(journal, wait), + TP_ARGS(journal), TP_STRUCT__entry( __field( dev_t, dev ) - __field( int, wait ) ), TP_fast_assign( __entry->dev = journal->j_fs_dev->bd_dev; - __entry->wait = wait; ), - TP_printk("dev %d,%d wait %d", - MAJOR(__entry->dev), MINOR(__entry->dev), - __entry->wait) + TP_printk("dev %d,%d", MAJOR(__entry->dev), MINOR(__entry->dev)) ); #endif /* _TRACE_JBD2_H */ |