diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-01-03 20:27:38 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-01-03 20:27:38 -0500 |
commit | 30773840c19cea60dcef39545960d541b1ac1cf8 (patch) | |
tree | f220a2dce451a40dc7264e8fd70c77c5a3908873 /include/linux/jbd2.h | |
parent | d7cfa4684d82f58e5d7cb73b8a3c88c169937f25 (diff) |
ext4: add fsync batch tuning knobs
Add new mount options, min_batch_time and max_batch_time, which
controls how long the jbd2 layer should wait for additional filesystem
operations to get batched with a synchronous write transaction.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/linux/jbd2.h')
-rw-r--r-- | include/linux/jbd2.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index ab8cef130c28..a3cd647ea1bc 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h | |||
@@ -956,6 +956,14 @@ struct journal_s | |||
956 | */ | 956 | */ |
957 | u64 j_average_commit_time; | 957 | u64 j_average_commit_time; |
958 | 958 | ||
959 | /* | ||
960 | * minimum and maximum times that we should wait for | ||
961 | * additional filesystem operations to get batched into a | ||
962 | * synchronous handle in microseconds | ||
963 | */ | ||
964 | u32 j_min_batch_time; | ||
965 | u32 j_max_batch_time; | ||
966 | |||
959 | /* This function is called when a transaction is closed */ | 967 | /* This function is called when a transaction is closed */ |
960 | void (*j_commit_callback)(journal_t *, | 968 | void (*j_commit_callback)(journal_t *, |
961 | transaction_t *); | 969 | transaction_t *); |