diff options
author | Jan Kara <jack@suse.cz> | 2006-01-06 03:19:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:59 -0500 |
commit | f93ea411b73594f7d144855fd34278bcf34a9afc (patch) | |
tree | 50419ba9250be6f923470b4eff73370512c00267 /include/linux | |
parent | 6fe2e70bbed3995d930f39452fb6ce3be7dc47dc (diff) |
[PATCH] jbd: split checkpoint lists
Split the checkpoint list of the transaction into two lists. In the first
list we keep the buffers that need to be submitted for IO. In the second
list are kept buffers that were already submitted and we just have to wait
for the IO to complete. This should simplify a handling of checkpoint
lists a bit and can eventually be also a performance gain.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/jbd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/jbd.h b/include/linux/jbd.h index dcde7adfdce5..558cb4c26ec9 100644 --- a/include/linux/jbd.h +++ b/include/linux/jbd.h | |||
@@ -498,6 +498,12 @@ struct transaction_s | |||
498 | struct journal_head *t_checkpoint_list; | 498 | struct journal_head *t_checkpoint_list; |
499 | 499 | ||
500 | /* | 500 | /* |
501 | * Doubly-linked circular list of all buffers submitted for IO while | ||
502 | * checkpointing. [j_list_lock] | ||
503 | */ | ||
504 | struct journal_head *t_checkpoint_io_list; | ||
505 | |||
506 | /* | ||
501 | * Doubly-linked circular list of temporary buffers currently undergoing | 507 | * Doubly-linked circular list of temporary buffers currently undergoing |
502 | * IO in the log [j_list_lock] | 508 | * IO in the log [j_list_lock] |
503 | */ | 509 | */ |
@@ -843,7 +849,7 @@ extern void journal_commit_transaction(journal_t *); | |||
843 | 849 | ||
844 | /* Checkpoint list management */ | 850 | /* Checkpoint list management */ |
845 | int __journal_clean_checkpoint_list(journal_t *journal); | 851 | int __journal_clean_checkpoint_list(journal_t *journal); |
846 | void __journal_remove_checkpoint(struct journal_head *); | 852 | int __journal_remove_checkpoint(struct journal_head *); |
847 | void __journal_insert_checkpoint(struct journal_head *, transaction_t *); | 853 | void __journal_insert_checkpoint(struct journal_head *, transaction_t *); |
848 | 854 | ||
849 | /* Buffer IO */ | 855 | /* Buffer IO */ |