Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43253
b: refs/heads/master
c: e928a76
h: refs/heads/master
i:
  43251: 4b939c2
v: v3
  • Loading branch information
Al Viro authored and Steven Whitehouse committed Nov 30, 2006
1 parent cee4019 commit b763543
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a2c98247b822db8df037a56c27201f9d716ac66
refs/heads/master: e928a76f959e89884f6186bb6f846c533847d5df
6 changes: 3 additions & 3 deletions trunk/fs/gfs2/ondisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void gfs2_inum_print(const struct gfs2_inum *no)
printk(KERN_INFO " no_addr = %llu\n", (unsigned long long)no->no_addr);
}

static void gfs2_meta_header_in(struct gfs2_meta_header *mh, const void *buf)
static void gfs2_meta_header_in(struct gfs2_meta_header_host *mh, const void *buf)
{
const struct gfs2_meta_header *str = buf;

Expand All @@ -63,7 +63,7 @@ static void gfs2_meta_header_in(struct gfs2_meta_header *mh, const void *buf)
mh->mh_format = be32_to_cpu(str->mh_format);
}

static void gfs2_meta_header_out(const struct gfs2_meta_header *mh, void *buf)
static void gfs2_meta_header_out(const struct gfs2_meta_header_host *mh, void *buf)
{
struct gfs2_meta_header *str = buf;

Expand All @@ -72,7 +72,7 @@ static void gfs2_meta_header_out(const struct gfs2_meta_header *mh, void *buf)
str->mh_format = cpu_to_be32(mh->mh_format);
}

static void gfs2_meta_header_print(const struct gfs2_meta_header *mh)
static void gfs2_meta_header_print(const struct gfs2_meta_header_host *mh)
{
pv(mh, mh_magic, "0x%.8X");
pv(mh, mh_type, "%u");
Expand Down
14 changes: 10 additions & 4 deletions trunk/include/linux/gfs2_ondisk.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ struct gfs2_meta_header {
__be32 __pad1; /* Was incarnation number in gfs1 */
};

struct gfs2_meta_header_host {
__u32 mh_magic;
__u32 mh_type;
__u32 mh_format;
};

/*
* super-block structure
*
Expand Down Expand Up @@ -129,7 +135,7 @@ struct gfs2_sb {
};

struct gfs2_sb_host {
struct gfs2_meta_header sb_header;
struct gfs2_meta_header_host sb_header;

__u32 sb_fs_format;
__u32 sb_multihost_format;
Expand Down Expand Up @@ -194,7 +200,7 @@ struct gfs2_rgrp {
};

struct gfs2_rgrp_host {
struct gfs2_meta_header rg_header;
struct gfs2_meta_header_host rg_header;

__u32 rg_flags;
__u32 rg_free;
Expand Down Expand Up @@ -297,7 +303,7 @@ struct gfs2_dinode {
};

struct gfs2_dinode_host {
struct gfs2_meta_header di_header;
struct gfs2_meta_header_host di_header;

struct gfs2_inum di_num;

Expand Down Expand Up @@ -406,7 +412,7 @@ struct gfs2_log_header {
};

struct gfs2_log_header_host {
struct gfs2_meta_header lh_header;
struct gfs2_meta_header_host lh_header;

__u64 lh_sequence; /* Sequence number of this transaction */
__u32 lh_flags; /* GFS2_LOG_HEAD_... */
Expand Down

0 comments on commit b763543

Please sign in to comment.