aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/jbd2.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/jbd2.h')
-rw-r--r--include/linux/jbd2.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h
index f36645745489..ab8cef130c28 100644
--- a/include/linux/jbd2.h
+++ b/include/linux/jbd2.h
@@ -638,6 +638,11 @@ struct transaction_s
638 unsigned long t_expires; 638 unsigned long t_expires;
639 639
640 /* 640 /*
641 * When this transaction started, in nanoseconds [no locking]
642 */
643 ktime_t t_start_time;
644
645 /*
641 * How many handles used this transaction? [t_handle_lock] 646 * How many handles used this transaction? [t_handle_lock]
642 */ 647 */
643 int t_handle_count; 648 int t_handle_count;
@@ -939,8 +944,18 @@ struct journal_s
939 struct buffer_head **j_wbuf; 944 struct buffer_head **j_wbuf;
940 int j_wbufsize; 945 int j_wbufsize;
941 946
947 /*
948 * this is the pid of hte last person to run a synchronous operation
949 * through the journal
950 */
942 pid_t j_last_sync_writer; 951 pid_t j_last_sync_writer;
943 952
953 /*
954 * the average amount of time in nanoseconds it takes to commit a
955 * transaction to disk. [j_state_lock]
956 */
957 u64 j_average_commit_time;
958
944 /* This function is called when a transaction is closed */ 959 /* This function is called when a transaction is closed */
945 void (*j_commit_callback)(journal_t *, 960 void (*j_commit_callback)(journal_t *,
946 transaction_t *); 961 transaction_t *);