]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/jbd2/checkpoint.c
ext4: Add debugging markers that can be used by systemtap
[linux-2.6-omap-h63xx.git] / fs / jbd2 / checkpoint.c
index af4651bf35704781542a2a9fe2f57c38ceed0282..42895d3694581885de894790f505557fda891c24 100644 (file)
@@ -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;