diff options
author | Li Hong <lihong.hi@gmail.com> | 2010-04-10 11:25:39 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-05-09 22:32:31 -0400 |
commit | fdce895ea5dd4e24edf1f4d693827349a4e5b3b4 (patch) | |
tree | 77a1a4cd496ed8459813eddf68efe8b777c3c058 /fs/nilfs2/segment.h | |
parent | 154ac5a83014cd6ea72e4ac5018bf8c10ee9a79e (diff) |
nilfs2: change sc_timer from a pointer to an embedded one in struct nilfs_sc_info
In nilfs_segctor_thread(), timer is a local variable allocated on stack. Its
address can't be set to sci->sc_timer and passed in several procedures.
It works now by chance, just because other procedures are called by
nilfs_segctor_thread() directly or indirectly and the stack hasn't been
deallocated yet.
Signed-off-by: Li Hong <lihong.hi@gmail.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/segment.h')
-rw-r--r-- | fs/nilfs2/segment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/segment.h b/fs/nilfs2/segment.h index 7aca76532683..dca142361ccf 100644 --- a/fs/nilfs2/segment.h +++ b/fs/nilfs2/segment.h | |||
@@ -177,7 +177,7 @@ struct nilfs_sc_info { | |||
177 | unsigned long sc_lseg_stime; /* in 1/HZ seconds */ | 177 | unsigned long sc_lseg_stime; /* in 1/HZ seconds */ |
178 | unsigned long sc_watermark; | 178 | unsigned long sc_watermark; |
179 | 179 | ||
180 | struct timer_list *sc_timer; | 180 | struct timer_list sc_timer; |
181 | struct task_struct *sc_task; | 181 | struct task_struct *sc_task; |
182 | }; | 182 | }; |
183 | 183 | ||