diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-03-29 19:58:22 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-29 19:58:22 -0500 |
commit | 79072f38909e3d9883317238887460c39ddcc4cb (patch) | |
tree | 28369f5a844535ff836565eefd62695b0e890fa3 /include/linux/jbd.h | |
parent | 200d5a7684cc49ef4be40e832daf3f217e70dfbb (diff) | |
parent | 55d8ca4f8094246da6e71889a4e04bfafaa78b10 (diff) |
Merge branch 'upstream'
Diffstat (limited to 'include/linux/jbd.h')
-rw-r--r-- | include/linux/jbd.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/jbd.h b/include/linux/jbd.h index 41ee79962bb2..6a425e370cb3 100644 --- a/include/linux/jbd.h +++ b/include/linux/jbd.h | |||
@@ -28,6 +28,9 @@ | |||
28 | #include <linux/journal-head.h> | 28 | #include <linux/journal-head.h> |
29 | #include <linux/stddef.h> | 29 | #include <linux/stddef.h> |
30 | #include <linux/bit_spinlock.h> | 30 | #include <linux/bit_spinlock.h> |
31 | #include <linux/mutex.h> | ||
32 | #include <linux/timer.h> | ||
33 | |||
31 | #include <asm/semaphore.h> | 34 | #include <asm/semaphore.h> |
32 | #endif | 35 | #endif |
33 | 36 | ||
@@ -575,7 +578,7 @@ struct transaction_s | |||
575 | * @j_wait_checkpoint: Wait queue to trigger checkpointing | 578 | * @j_wait_checkpoint: Wait queue to trigger checkpointing |
576 | * @j_wait_commit: Wait queue to trigger commit | 579 | * @j_wait_commit: Wait queue to trigger commit |
577 | * @j_wait_updates: Wait queue to wait for updates to complete | 580 | * @j_wait_updates: Wait queue to wait for updates to complete |
578 | * @j_checkpoint_sem: Semaphore for locking against concurrent checkpoints | 581 | * @j_checkpoint_mutex: Mutex for locking against concurrent checkpoints |
579 | * @j_head: Journal head - identifies the first unused block in the journal | 582 | * @j_head: Journal head - identifies the first unused block in the journal |
580 | * @j_tail: Journal tail - identifies the oldest still-used block in the | 583 | * @j_tail: Journal tail - identifies the oldest still-used block in the |
581 | * journal. | 584 | * journal. |
@@ -645,7 +648,7 @@ struct journal_s | |||
645 | int j_barrier_count; | 648 | int j_barrier_count; |
646 | 649 | ||
647 | /* The barrier lock itself */ | 650 | /* The barrier lock itself */ |
648 | struct semaphore j_barrier; | 651 | struct mutex j_barrier; |
649 | 652 | ||
650 | /* | 653 | /* |
651 | * Transactions: The current running transaction... | 654 | * Transactions: The current running transaction... |
@@ -687,7 +690,7 @@ struct journal_s | |||
687 | wait_queue_head_t j_wait_updates; | 690 | wait_queue_head_t j_wait_updates; |
688 | 691 | ||
689 | /* Semaphore for locking against concurrent checkpoints */ | 692 | /* Semaphore for locking against concurrent checkpoints */ |
690 | struct semaphore j_checkpoint_sem; | 693 | struct mutex j_checkpoint_mutex; |
691 | 694 | ||
692 | /* | 695 | /* |
693 | * Journal head: identifies the first unused block in the journal. | 696 | * Journal head: identifies the first unused block in the journal. |
@@ -786,7 +789,7 @@ struct journal_s | |||
786 | unsigned long j_commit_interval; | 789 | unsigned long j_commit_interval; |
787 | 790 | ||
788 | /* The timer used to wakeup the commit thread: */ | 791 | /* The timer used to wakeup the commit thread: */ |
789 | struct timer_list *j_commit_timer; | 792 | struct timer_list j_commit_timer; |
790 | 793 | ||
791 | /* | 794 | /* |
792 | * The revoke table: maintains the list of revoked blocks in the | 795 | * The revoke table: maintains the list of revoked blocks in the |
@@ -892,7 +895,7 @@ extern int journal_dirty_metadata (handle_t *, struct buffer_head *); | |||
892 | extern void journal_release_buffer (handle_t *, struct buffer_head *); | 895 | extern void journal_release_buffer (handle_t *, struct buffer_head *); |
893 | extern int journal_forget (handle_t *, struct buffer_head *); | 896 | extern int journal_forget (handle_t *, struct buffer_head *); |
894 | extern void journal_sync_buffer (struct buffer_head *); | 897 | extern void journal_sync_buffer (struct buffer_head *); |
895 | extern int journal_invalidatepage(journal_t *, | 898 | extern void journal_invalidatepage(journal_t *, |
896 | struct page *, unsigned long); | 899 | struct page *, unsigned long); |
897 | extern int journal_try_to_free_buffers(journal_t *, struct page *, gfp_t); | 900 | extern int journal_try_to_free_buffers(journal_t *, struct page *, gfp_t); |
898 | extern int journal_stop(handle_t *); | 901 | extern int journal_stop(handle_t *); |