diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-25 06:06:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:22:50 -0500 |
commit | e3df18983ea090a2e00dd5c2c6167bb431a0e0a2 (patch) | |
tree | 99f7944da7c8c85eed6738c1ef9f357f7dcae928 /include | |
parent | 1d9b7d97d6661edb44ce08f17e47c66d4ac20e34 (diff) |
[PATCH] jbd: embed j_commit_timer in journal struct
The kjournald timer is currently on the kernel thread's stack and the journal
structure points at it. Save a pointer hop by moving the timer into the
journal structure.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/jbd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/jbd.h b/include/linux/jbd.h index 2ccbfb6340ba..4fc7dffd66ef 100644 --- a/include/linux/jbd.h +++ b/include/linux/jbd.h | |||
@@ -29,6 +29,8 @@ | |||
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> | 31 | #include <linux/mutex.h> |
32 | #include <linux/timer.h> | ||
33 | |||
32 | #include <asm/semaphore.h> | 34 | #include <asm/semaphore.h> |
33 | #endif | 35 | #endif |
34 | 36 | ||
@@ -787,7 +789,7 @@ struct journal_s | |||
787 | unsigned long j_commit_interval; | 789 | unsigned long j_commit_interval; |
788 | 790 | ||
789 | /* The timer used to wakeup the commit thread: */ | 791 | /* The timer used to wakeup the commit thread: */ |
790 | struct timer_list *j_commit_timer; | 792 | struct timer_list j_commit_timer; |
791 | 793 | ||
792 | /* | 794 | /* |
793 | * The revoke table: maintains the list of revoked blocks in the | 795 | * The revoke table: maintains the list of revoked blocks in the |