aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/jbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/jbd.h')
-rw-r--r--include/linux/jbd.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/jbd.h b/include/linux/jbd.h
index 346e2b80be7d..64246dce5663 100644
--- a/include/linux/jbd.h
+++ b/include/linux/jbd.h
@@ -543,6 +543,11 @@ struct transaction_s
543 unsigned long t_expires; 543 unsigned long t_expires;
544 544
545 /* 545 /*
546 * When this transaction started, in nanoseconds [no locking]
547 */
548 ktime_t t_start_time;
549
550 /*
546 * How many handles used this transaction? [t_handle_lock] 551 * How many handles used this transaction? [t_handle_lock]
547 */ 552 */
548 int t_handle_count; 553 int t_handle_count;
@@ -609,6 +614,8 @@ struct transaction_s
609 * @j_wbufsize: maximum number of buffer_heads allowed in j_wbuf, the 614 * @j_wbufsize: maximum number of buffer_heads allowed in j_wbuf, the
610 * number that will fit in j_blocksize 615 * number that will fit in j_blocksize
611 * @j_last_sync_writer: most recent pid which did a synchronous write 616 * @j_last_sync_writer: most recent pid which did a synchronous write
617 * @j_average_commit_time: the average amount of time in nanoseconds it
618 * takes to commit a transaction to the disk.
612 * @j_private: An opaque pointer to fs-private information. 619 * @j_private: An opaque pointer to fs-private information.
613 */ 620 */
614 621
@@ -798,9 +805,19 @@ struct journal_s
798 struct buffer_head **j_wbuf; 805 struct buffer_head **j_wbuf;
799 int j_wbufsize; 806 int j_wbufsize;
800 807
808 /*
809 * this is the pid of the last person to run a synchronous operation
810 * through the journal.
811 */
801 pid_t j_last_sync_writer; 812 pid_t j_last_sync_writer;
802 813
803 /* 814 /*
815 * the average amount of time in nanoseconds it takes to commit a
816 * transaction to the disk. [j_state_lock]
817 */
818 u64 j_average_commit_time;
819
820 /*
804 * An opaque pointer to fs-private information. ext3 puts its 821 * An opaque pointer to fs-private information. ext3 puts its
805 * superblock pointer here 822 * superblock pointer here
806 */ 823 */