.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* -*- mode: c; c-basic-offset: 8; -*- |
---|
2 | 3 | * |
---|
3 | 4 | * vim: noexpandtab sw=8 ts=8 sts=0: |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (C) 2005 Oracle. All rights reserved. |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public |
---|
9 | | - * License as published by the Free Software Foundation; either |
---|
10 | | - * version 2 of the License, or (at your option) any later version. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope that it will be useful, |
---|
13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | | - * General Public License for more details. |
---|
16 | | - * |
---|
17 | | - * You should have received a copy of the GNU General Public |
---|
18 | | - * License along with this program; if not, write to the |
---|
19 | | - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
20 | | - * Boston, MA 021110-1307, USA. |
---|
21 | 7 | */ |
---|
22 | 8 | |
---|
23 | 9 | /* This quorum hack is only here until we transition to some more rational |
---|
.. | .. |
---|
81 | 67 | default: |
---|
82 | 68 | WARN_ON(o2nm_single_cluster->cl_fence_method >= |
---|
83 | 69 | O2NM_FENCE_METHODS); |
---|
| 70 | + fallthrough; |
---|
84 | 71 | case O2NM_FENCE_RESET: |
---|
85 | 72 | printk(KERN_ERR "*** ocfs2 is very sorry to be fencing this " |
---|
86 | 73 | "system by restarting ***\n"); |
---|
87 | 74 | emergency_restart(); |
---|
88 | 75 | break; |
---|
89 | | - }; |
---|
| 76 | + } |
---|
90 | 77 | } |
---|
91 | 78 | |
---|
92 | | -/* Indicate that a timeout occurred on a hearbeat region write. The |
---|
| 79 | +/* Indicate that a timeout occurred on a heartbeat region write. The |
---|
93 | 80 | * other nodes in the cluster may consider us dead at that time so we |
---|
94 | 81 | * want to "fence" ourselves so that we don't scribble on the disk |
---|
95 | 82 | * after they think they've recovered us. This can't solve all |
---|