summaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_logmgr.h
diff options
context:
space:
mode:
authorAndy Shevchenko2019-01-10 14:41:53 +0100
committerDave Kleikamp2019-01-10 17:28:56 +0100
commit2e3bc6125154c691e987e2554f2c99ec10f83b73 (patch)
tree07862dad0ce7c0e82d10d672de41aca46eae5fed /fs/jfs/jfs_logmgr.h
parentjfs: compare old and new mode before setting update_mode flag (diff)
downloadkernel-qcow2-linux-2e3bc6125154c691e987e2554f2c99ec10f83b73.tar.gz
kernel-qcow2-linux-2e3bc6125154c691e987e2554f2c99ec10f83b73.tar.xz
kernel-qcow2-linux-2e3bc6125154c691e987e2554f2c99ec10f83b73.zip
fs/jfs: Switch to use new generic UUID API
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Diffstat (limited to 'fs/jfs/jfs_logmgr.h')
-rw-r--r--fs/jfs/jfs_logmgr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/jfs/jfs_logmgr.h b/fs/jfs/jfs_logmgr.h
index e38c21598850..870fc22360e7 100644
--- a/fs/jfs/jfs_logmgr.h
+++ b/fs/jfs/jfs_logmgr.h
@@ -19,6 +19,8 @@
#ifndef _H_JFS_LOGMGR
#define _H_JFS_LOGMGR
+#include <linux/uuid.h>
+
#include "jfs_filsys.h"
#include "jfs_lock.h"
@@ -73,15 +75,13 @@ struct logsuper {
__le32 state; /* 4: state - see below */
__le32 end; /* 4: addr of last log record set by logredo */
- char uuid[16]; /* 16: 128-bit journal uuid */
+ uuid_t uuid; /* 16: 128-bit journal uuid */
char label[16]; /* 16: journal label */
struct {
- char uuid[16];
+ uuid_t uuid;
} active[MAX_ACTIVE]; /* 2048: active file systems list */
};
-#define NULL_UUID "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-
/* log flag: commit option (see jfs_filsys.h) */
/* log state */
@@ -410,7 +410,7 @@ struct jfs_log {
spinlock_t synclock; /* 4: synclist lock */
struct lbuf *wqueue; /* 4: log pageout queue */
int count; /* 4: count */
- char uuid[16]; /* 16: 128-bit uuid of log device */
+ uuid_t uuid; /* 16: 128-bit uuid of log device */
int no_integrity; /* 3: flag to disable journaling to disk */
};