Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296534
b: refs/heads/master
c: 2201c59
h: refs/heads/master
v: v3
  • Loading branch information
Seiji Aguchi authored and Theodore Ts'o committed Feb 20, 2012
1 parent 52e0465 commit 37fcb13
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d2b158262826e8b75bbbfb7b97010838dd92ac7
refs/heads/master: 2201c590dd6e802795e21e69e3c152c519f1568e
2 changes: 2 additions & 0 deletions trunk/fs/jbd2/checkpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
J_ASSERT(journal->j_committing_transaction != transaction);
J_ASSERT(journal->j_running_transaction != transaction);

trace_jbd2_drop_transaction(journal, transaction);

jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
}
2 changes: 2 additions & 0 deletions trunk/fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
} else
write_dirty_buffer(bh, WRITE);

trace_jbd2_update_superblock_end(journal, wait);

out:
/* If we have just flushed the log (by marking s_start==0), then
* any future commit will have to be careful to update the
Expand Down
28 changes: 28 additions & 0 deletions trunk/include/trace/events/jbd2.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
TP_ARGS(journal, commit_transaction)
);

DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,

TP_PROTO(journal_t *journal, transaction_t *commit_transaction),

TP_ARGS(journal, commit_transaction)
);

TRACE_EVENT(jbd2_end_commit,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),

Expand Down Expand Up @@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
__entry->block_nr, __entry->freed)
);

TRACE_EVENT(jbd2_update_superblock_end,

TP_PROTO(journal_t *journal, int wait),

TP_ARGS(journal, wait),

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)
);

#endif /* _TRACE_JBD2_H */

/* This part must be outside protection */
Expand Down

0 comments on commit 37fcb13

Please sign in to comment.