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/checkpoint.c | |
parent | 23f8b79eae8a74e42a006ffa7c456e295c7e1c0d (diff) | |
download | op-kernel-dev-ede86cc473defab74d778aeac14b19f43129d4d1.zip op-kernel-dev-ede86cc473defab74d778aeac14b19f43129d4d1.tar.gz |
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/checkpoint.c')
-rw-r--r-- | fs/jbd2/checkpoint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c index af4651b..42895d36 100644 --- a/fs/jbd2/checkpoint.c +++ b/fs/jbd2/checkpoint.c @@ -20,6 +20,7 @@ #include <linux/time.h> #include <linux/fs.h> #include <linux/jbd2.h> +#include <linux/marker.h> #include <linux/errno.h> #include <linux/slab.h> @@ -328,6 +329,8 @@ int jbd2_log_do_checkpoint(journal_t *journal) * journal straight away. */ result = jbd2_cleanup_journal_tail(journal); + trace_mark(jbd2_checkpoint, "dev %s need_checkpoint %d", + journal->j_devname, result); jbd_debug(1, "cleanup_journal_tail returned %d\n", result); if (result <= 0) return result; |