diff options
-rw-r--r-- | fs/gfs2/ondisk.c | 6 | ||||
-rw-r--r-- | include/linux/gfs2_ondisk.h | 14 |
2 files changed, 13 insertions, 7 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index 84b1ebc7569e..b5aa7ab97f28 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c | |||
@@ -54,7 +54,7 @@ static void gfs2_inum_print(const struct gfs2_inum *no) | |||
54 | printk(KERN_INFO " no_addr = %llu\n", (unsigned long long)no->no_addr); | 54 | printk(KERN_INFO " no_addr = %llu\n", (unsigned long long)no->no_addr); |
55 | } | 55 | } |
56 | 56 | ||
57 | static void gfs2_meta_header_in(struct gfs2_meta_header *mh, const void *buf) | 57 | static void gfs2_meta_header_in(struct gfs2_meta_header_host *mh, const void *buf) |
58 | { | 58 | { |
59 | const struct gfs2_meta_header *str = buf; | 59 | const struct gfs2_meta_header *str = buf; |
60 | 60 | ||
@@ -63,7 +63,7 @@ static void gfs2_meta_header_in(struct gfs2_meta_header *mh, const void *buf) | |||
63 | mh->mh_format = be32_to_cpu(str->mh_format); | 63 | mh->mh_format = be32_to_cpu(str->mh_format); |
64 | } | 64 | } |
65 | 65 | ||
66 | static void gfs2_meta_header_out(const struct gfs2_meta_header *mh, void *buf) | 66 | static void gfs2_meta_header_out(const struct gfs2_meta_header_host *mh, void *buf) |
67 | { | 67 | { |
68 | struct gfs2_meta_header *str = buf; | 68 | struct gfs2_meta_header *str = buf; |
69 | 69 | ||
@@ -72,7 +72,7 @@ static void gfs2_meta_header_out(const struct gfs2_meta_header *mh, void *buf) | |||
72 | str->mh_format = cpu_to_be32(mh->mh_format); | 72 | str->mh_format = cpu_to_be32(mh->mh_format); |
73 | } | 73 | } |
74 | 74 | ||
75 | static void gfs2_meta_header_print(const struct gfs2_meta_header *mh) | 75 | static void gfs2_meta_header_print(const struct gfs2_meta_header_host *mh) |
76 | { | 76 | { |
77 | pv(mh, mh_magic, "0x%.8X"); | 77 | pv(mh, mh_magic, "0x%.8X"); |
78 | pv(mh, mh_type, "%u"); | 78 | pv(mh, mh_type, "%u"); |
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index fb69a64c70cd..76eb9e1bb773 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
@@ -89,6 +89,12 @@ struct gfs2_meta_header { | |||
89 | __be32 __pad1; /* Was incarnation number in gfs1 */ | 89 | __be32 __pad1; /* Was incarnation number in gfs1 */ |
90 | }; | 90 | }; |
91 | 91 | ||
92 | struct gfs2_meta_header_host { | ||
93 | __u32 mh_magic; | ||
94 | __u32 mh_type; | ||
95 | __u32 mh_format; | ||
96 | }; | ||
97 | |||
92 | /* | 98 | /* |
93 | * super-block structure | 99 | * super-block structure |
94 | * | 100 | * |
@@ -129,7 +135,7 @@ struct gfs2_sb { | |||
129 | }; | 135 | }; |
130 | 136 | ||
131 | struct gfs2_sb_host { | 137 | struct gfs2_sb_host { |
132 | struct gfs2_meta_header sb_header; | 138 | struct gfs2_meta_header_host sb_header; |
133 | 139 | ||
134 | __u32 sb_fs_format; | 140 | __u32 sb_fs_format; |
135 | __u32 sb_multihost_format; | 141 | __u32 sb_multihost_format; |
@@ -194,7 +200,7 @@ struct gfs2_rgrp { | |||
194 | }; | 200 | }; |
195 | 201 | ||
196 | struct gfs2_rgrp_host { | 202 | struct gfs2_rgrp_host { |
197 | struct gfs2_meta_header rg_header; | 203 | struct gfs2_meta_header_host rg_header; |
198 | 204 | ||
199 | __u32 rg_flags; | 205 | __u32 rg_flags; |
200 | __u32 rg_free; | 206 | __u32 rg_free; |
@@ -297,7 +303,7 @@ struct gfs2_dinode { | |||
297 | }; | 303 | }; |
298 | 304 | ||
299 | struct gfs2_dinode_host { | 305 | struct gfs2_dinode_host { |
300 | struct gfs2_meta_header di_header; | 306 | struct gfs2_meta_header_host di_header; |
301 | 307 | ||
302 | struct gfs2_inum di_num; | 308 | struct gfs2_inum di_num; |
303 | 309 | ||
@@ -406,7 +412,7 @@ struct gfs2_log_header { | |||
406 | }; | 412 | }; |
407 | 413 | ||
408 | struct gfs2_log_header_host { | 414 | struct gfs2_log_header_host { |
409 | struct gfs2_meta_header lh_header; | 415 | struct gfs2_meta_header_host lh_header; |
410 | 416 | ||
411 | __u64 lh_sequence; /* Sequence number of this transaction */ | 417 | __u64 lh_sequence; /* Sequence number of this transaction */ |
412 | __u32 lh_flags; /* GFS2_LOG_HEAD_... */ | 418 | __u32 lh_flags; /* GFS2_LOG_HEAD_... */ |