hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/fs/jfs/jfs_logmgr.h
....@@ -1,23 +1,12 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) International Business Machines Corp., 2000-2004
34 * Portions Copyright (C) Christoph Hellwig, 2001-2002
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13
- * the GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
185 */
196 #ifndef _H_JFS_LOGMGR
207 #define _H_JFS_LOGMGR
8
+
9
+#include <linux/uuid.h>
2110
2211 #include "jfs_filsys.h"
2312 #include "jfs_lock.h"
....@@ -73,14 +62,12 @@
7362 __le32 state; /* 4: state - see below */
7463
7564 __le32 end; /* 4: addr of last log record set by logredo */
76
- char uuid[16]; /* 16: 128-bit journal uuid */
65
+ uuid_t uuid; /* 16: 128-bit journal uuid */
7766 char label[16]; /* 16: journal label */
7867 struct {
79
- char uuid[16];
68
+ uuid_t uuid;
8069 } active[MAX_ACTIVE]; /* 2048: active file systems list */
8170 };
82
-
83
-#define NULL_UUID "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
8471
8572 /* log flag: commit option (see jfs_filsys.h) */
8673
....@@ -410,7 +397,7 @@
410397 spinlock_t synclock; /* 4: synclist lock */
411398 struct lbuf *wqueue; /* 4: log pageout queue */
412399 int count; /* 4: count */
413
- char uuid[16]; /* 16: 128-bit uuid of log device */
400
+ uuid_t uuid; /* 16: 128-bit uuid of log device */
414401
415402 int no_integrity; /* 3: flag to disable journaling to disk */
416403 };