diff options
| author | Geliang Tang <geliangtang@gmail.com> | 2017-05-03 17:51:38 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-03 18:52:07 -0400 |
| commit | 667b8a37f34b39f752f59f4808762bd5c7688a71 (patch) | |
| tree | 48e0d5a150f2ed05f9d18d32aebdc1c0ce687188 /fs/ocfs2 | |
| parent | accce8e7e8b769ec2430bc0f4a8a2b23c68c1837 (diff) | |
fs/ocfs2/cluster: use setup_timer
Use setup_timer() instead of init_timer() to simplify the code.
Link: http://lkml.kernel.org/r/5e75bf07beb91e092d5aa36c36769949a480456a.1489060564.git.geliangtang@gmail.com
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2')
| -rw-r--r-- | fs/ocfs2/cluster/tcp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index 5b51c31c892d..a4a6ba23b9a6 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocfs2/cluster/tcp.c | |||
| @@ -450,9 +450,8 @@ static struct o2net_sock_container *sc_alloc(struct o2nm_node *node) | |||
| 450 | INIT_WORK(&sc->sc_shutdown_work, o2net_shutdown_sc); | 450 | INIT_WORK(&sc->sc_shutdown_work, o2net_shutdown_sc); |
| 451 | INIT_DELAYED_WORK(&sc->sc_keepalive_work, o2net_sc_send_keep_req); | 451 | INIT_DELAYED_WORK(&sc->sc_keepalive_work, o2net_sc_send_keep_req); |
| 452 | 452 | ||
| 453 | init_timer(&sc->sc_idle_timeout); | 453 | setup_timer(&sc->sc_idle_timeout, o2net_idle_timer, |
| 454 | sc->sc_idle_timeout.function = o2net_idle_timer; | 454 | (unsigned long)sc); |
| 455 | sc->sc_idle_timeout.data = (unsigned long)sc; | ||
| 456 | 455 | ||
| 457 | sclog(sc, "alloced\n"); | 456 | sclog(sc, "alloced\n"); |
| 458 | 457 | ||
