diff options
author | Jie Liu <jeff.liu@oracle.com> | 2013-07-03 18:01:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:25 -0400 |
commit | 44e89cb8e279abdf83581a10e592c2451bae7824 (patch) | |
tree | 680753cce3fc15022e1def1d91da3bbdb207f0ca /fs/ocfs2 | |
parent | b4d8ed4f8e527751c7ece6cef73f6212808e6130 (diff) |
ocfs2: adjust switch_case syntax at o2net_state_change()
Adjust switch..case syntax at o2net_state_change to meet the kernel coding
standard.
s/printk/pr_info/.
[akpm@linux-foundation.org: revert pr_foo() change]
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Cc: Gurudas Pai <gurudas.pai@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
Cc: Srinivas Eeeda <srinivas.eeda@oracle.com>
Cc: Sunil Mushran <sunil.mushran@gmail.com>
Cc: Tao Ma <tm@tao.ma>
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 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index bb9a48bfbd01..d644dc611425 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocfs2/cluster/tcp.c | |||
@@ -633,19 +633,19 @@ static void o2net_state_change(struct sock *sk) | |||
633 | state_change = sc->sc_state_change; | 633 | state_change = sc->sc_state_change; |
634 | 634 | ||
635 | switch(sk->sk_state) { | 635 | switch(sk->sk_state) { |
636 | /* ignore connecting sockets as they make progress */ | 636 | /* ignore connecting sockets as they make progress */ |
637 | case TCP_SYN_SENT: | 637 | case TCP_SYN_SENT: |
638 | case TCP_SYN_RECV: | 638 | case TCP_SYN_RECV: |
639 | break; | 639 | break; |
640 | case TCP_ESTABLISHED: | 640 | case TCP_ESTABLISHED: |
641 | o2net_sc_queue_work(sc, &sc->sc_connect_work); | 641 | o2net_sc_queue_work(sc, &sc->sc_connect_work); |
642 | break; | 642 | break; |
643 | default: | 643 | default: |
644 | printk(KERN_INFO "o2net: Connection to " SC_NODEF_FMT | 644 | printk(KERN_INFO "o2net: Connection to " SC_NODEF_FMT |
645 | " shutdown, state %d\n", | 645 | " shutdown, state %d\n", |
646 | SC_NODEF_ARGS(sc), sk->sk_state); | 646 | SC_NODEF_ARGS(sc), sk->sk_state); |
647 | o2net_sc_queue_work(sc, &sc->sc_shutdown_work); | 647 | o2net_sc_queue_work(sc, &sc->sc_shutdown_work); |
648 | break; | 648 | break; |
649 | } | 649 | } |
650 | out: | 650 | out: |
651 | read_unlock(&sk->sk_callback_lock); | 651 | read_unlock(&sk->sk_callback_lock); |