diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-10-05 20:50:06 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-10-05 20:50:06 -0400 |
commit | ede86cc473defab74d778aeac14b19f43129d4d1 (patch) | |
tree | 19da8009accf1737171f5949413e46a9086d5fdc /fs/jbd2/commit.c | |
parent | 23f8b79eae8a74e42a006ffa7c456e295c7e1c0d (diff) |
ext4: Add debugging markers that can be used by systemtap
This debugging markers are designed to debug problems such as the
random filesystem latency problems reported by Arjan.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/commit.c')
-rw-r--r-- | fs/jbd2/commit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index b091e5378fe0..e91f051a9859 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/time.h> | 16 | #include <linux/time.h> |
17 | #include <linux/fs.h> | 17 | #include <linux/fs.h> |
18 | #include <linux/jbd2.h> | 18 | #include <linux/jbd2.h> |
19 | #include <linux/marker.h> | ||
19 | #include <linux/errno.h> | 20 | #include <linux/errno.h> |
20 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
21 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
@@ -368,6 +369,8 @@ void jbd2_journal_commit_transaction(journal_t *journal) | |||
368 | commit_transaction = journal->j_running_transaction; | 369 | commit_transaction = journal->j_running_transaction; |
369 | J_ASSERT(commit_transaction->t_state == T_RUNNING); | 370 | J_ASSERT(commit_transaction->t_state == T_RUNNING); |
370 | 371 | ||
372 | trace_mark(jbd2_start_commit, "dev %s transaction %d", | ||
373 | journal->j_devname, commit_transaction->t_tid); | ||
371 | jbd_debug(1, "JBD: starting commit of transaction %d\n", | 374 | jbd_debug(1, "JBD: starting commit of transaction %d\n", |
372 | commit_transaction->t_tid); | 375 | commit_transaction->t_tid); |
373 | 376 | ||
@@ -985,6 +988,9 @@ restart_loop: | |||
985 | } | 988 | } |
986 | spin_unlock(&journal->j_list_lock); | 989 | spin_unlock(&journal->j_list_lock); |
987 | 990 | ||
991 | trace_mark(jbd2_end_commit, "dev %s transaction %d head %d", | ||
992 | journal->j_devname, commit_transaction->t_tid, | ||
993 | journal->j_tail_sequence); | ||
988 | jbd_debug(1, "JBD: commit %d complete, head %d\n", | 994 | jbd_debug(1, "JBD: commit %d complete, head %d\n", |
989 | journal->j_commit_sequence, journal->j_tail_sequence); | 995 | journal->j_commit_sequence, journal->j_tail_sequence); |
990 | 996 | ||