]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: change sc_timer from a pointer to an embedded one in struct nilfs_sc_info
authorLi Hong <lihong.hi@gmail.com>
Sat, 10 Apr 2010 15:25:39 +0000 (23:25 +0800)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 10 May 2010 02:32:31 +0000 (11:32 +0900)
commita192d32e065ede627da6978e707ac22babbd8d8b
tree77a1a4cd496ed8459813eddf68efe8b777c3c058
parent7230662f7f7777cfe96f4ad392d0cac3981e3f2b
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>
fs/nilfs2/segment.c
fs/nilfs2/segment.h