]> git.baikalelectronics.ru Git - kernel.git/commit
fs/nilfs2: convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Fri, 17 Nov 2017 23:29:32 +0000 (15:29 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Nov 2017 00:10:03 +0000 (16:10 -0800)
commit7554e9c4cfa208acf3164a86c05aaa967b043425
treefd89423abb2149756c766de38062d04959ac3988
parentfb910c42ccebf853c29296185c45c11164a56098
fs/nilfs2: convert timers to use timer_setup()

In preparation for unconditionally passing the struct timer_list pointer
to all timer callbacks, switch to using the new timer_setup() and
from_timer() to pass the timer pointer explicitly.  This requires adding
a pointer to hold the timer's target task, as the lifetime of sc_task
doesn't appear to match the timer's task.

Link: http://lkml.kernel.org/r/20171016235900.GA102729@beast
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nilfs2/segment.c
fs/nilfs2/segment.h