aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2
diff options
context:
space:
mode:
authorSeiji Aguchi <seiji.aguchi@hds.com>2012-02-20 17:53:01 -0500
committerTheodore Ts'o <tytso@mit.edu>2012-02-20 17:53:01 -0500
commit2201c590dd6e802795e21e69e3c152c519f1568e (patch)
treea617a8578dd181bbcb83c0e3c6198a3dc836eef8 /fs/jbd2
parent3d2b158262826e8b75bbbfb7b97010838dd92ac7 (diff)
jbd2: add drop_transaction/update_superblock_end tracepoints
This patch adds trace_jbd2_drop_transaction and trace_jbd2_update_superblock_end because there are similar tracepoints in jbd and they are needed in jbd2 as well. Reviewed-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2')
-rw-r--r--fs/jbd2/checkpoint.c2
-rw-r--r--fs/jbd2/journal.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c
index d49d202903fb..453c9068b7d7 100644
--- a/fs/jbd2/checkpoint.c
+++ b/fs/jbd2/checkpoint.c
@@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
797 J_ASSERT(journal->j_committing_transaction != transaction); 797 J_ASSERT(journal->j_committing_transaction != transaction);
798 J_ASSERT(journal->j_running_transaction != transaction); 798 J_ASSERT(journal->j_running_transaction != transaction);
799 799
800 trace_jbd2_drop_transaction(journal, transaction);
801
800 jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid); 802 jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
801} 803}
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index c0a5f9f1b127..93a595c69616 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
1185 } else 1185 } else
1186 write_dirty_buffer(bh, WRITE); 1186 write_dirty_buffer(bh, WRITE);
1187 1187
1188 trace_jbd2_update_superblock_end(journal, wait);
1189
1188out: 1190out:
1189 /* If we have just flushed the log (by marking s_start==0), then 1191 /* If we have just flushed the log (by marking s_start==0), then
1190 * any future commit will have to be careful to update the 1192 * any future commit will have to be careful to update the