hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/fs/ocfs2/cluster/quorum.c
....@@ -1,23 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* -*- mode: c; c-basic-offset: 8; -*-
23 *
34 * vim: noexpandtab sw=8 ts=8 sts=0:
45 *
56 * 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.
217 */
228
239 /* This quorum hack is only here until we transition to some more rational
....@@ -81,15 +67,16 @@
8167 default:
8268 WARN_ON(o2nm_single_cluster->cl_fence_method >=
8369 O2NM_FENCE_METHODS);
70
+ fallthrough;
8471 case O2NM_FENCE_RESET:
8572 printk(KERN_ERR "*** ocfs2 is very sorry to be fencing this "
8673 "system by restarting ***\n");
8774 emergency_restart();
8875 break;
89
- };
76
+ }
9077 }
9178
92
-/* Indicate that a timeout occurred on a hearbeat region write. The
79
+/* Indicate that a timeout occurred on a heartbeat region write. The
9380 * other nodes in the cluster may consider us dead at that time so we
9481 * want to "fence" ourselves so that we don't scribble on the disk
9582 * after they think they've recovered us. This can't solve all