diff options
| author | Jan Kara <jack@suse.cz> | 2012-04-07 06:33:03 -0400 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2012-05-15 17:34:36 -0400 |
| commit | 9754e39c7bc51328f145e933bfb0df47cd67b6e9 (patch) | |
| tree | d2fa043f74939d049d6934aea6ab7b1c272be8a5 /include/trace | |
| parent | f72cf5e223a28d3b3ea7dc9e40464fd534e359e8 (diff) | |
jbd: 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>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/jbd.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/trace/events/jbd.h b/include/trace/events/jbd.h index 9305e1b5edc3..d9658a940a39 100644 --- a/include/trace/events/jbd.h +++ b/include/trace/events/jbd.h | |||
| @@ -169,24 +169,20 @@ TRACE_EVENT(jbd_cleanup_journal_tail, | |||
| 169 | __entry->block_nr, __entry->freed) | 169 | __entry->block_nr, __entry->freed) |
| 170 | ); | 170 | ); |
| 171 | 171 | ||
| 172 | TRACE_EVENT(jbd_update_superblock_end, | 172 | TRACE_EVENT(journal_write_superblock, |
| 173 | TP_PROTO(journal_t *journal, int wait), | 173 | TP_PROTO(journal_t *journal), |
| 174 | 174 | ||
| 175 | TP_ARGS(journal, wait), | 175 | TP_ARGS(journal), |
| 176 | 176 | ||
| 177 | TP_STRUCT__entry( | 177 | TP_STRUCT__entry( |
| 178 | __field( dev_t, dev ) | 178 | __field( dev_t, dev ) |
| 179 | __field( int, wait ) | ||
| 180 | ), | 179 | ), |
| 181 | 180 | ||
| 182 | TP_fast_assign( | 181 | TP_fast_assign( |
| 183 | __entry->dev = journal->j_fs_dev->bd_dev; | 182 | __entry->dev = journal->j_fs_dev->bd_dev; |
| 184 | __entry->wait = wait; | ||
| 185 | ), | 183 | ), |
| 186 | 184 | ||
| 187 | TP_printk("dev %d,%d wait %d", | 185 | TP_printk("dev %d,%d", MAJOR(__entry->dev), MINOR(__entry->dev)) |
| 188 | MAJOR(__entry->dev), MINOR(__entry->dev), | ||
| 189 | __entry->wait) | ||
| 190 | ); | 186 | ); |
| 191 | 187 | ||
| 192 | #endif /* _TRACE_JBD_H */ | 188 | #endif /* _TRACE_JBD_H */ |
