diff options
-rw-r--r-- | fs/gfs2/ondisk.c | 11 | ||||
-rw-r--r-- | include/linux/gfs2_ondisk.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index b2baba5c50b7..f2495f1e21ad 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c | |||
@@ -65,15 +65,6 @@ static void gfs2_meta_header_in(struct gfs2_meta_header_host *mh, const void *bu | |||
65 | mh->mh_format = be32_to_cpu(str->mh_format); | 65 | mh->mh_format = be32_to_cpu(str->mh_format); |
66 | } | 66 | } |
67 | 67 | ||
68 | static void gfs2_meta_header_out(const struct gfs2_meta_header_host *mh, void *buf) | ||
69 | { | ||
70 | struct gfs2_meta_header *str = buf; | ||
71 | |||
72 | str->mh_magic = cpu_to_be32(mh->mh_magic); | ||
73 | str->mh_type = cpu_to_be32(mh->mh_type); | ||
74 | str->mh_format = cpu_to_be32(mh->mh_format); | ||
75 | } | ||
76 | |||
77 | void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf) | 68 | void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf) |
78 | { | 69 | { |
79 | const struct gfs2_sb *str = buf; | 70 | const struct gfs2_sb *str = buf; |
@@ -119,7 +110,6 @@ void gfs2_rgrp_in(struct gfs2_rgrp_host *rg, const void *buf) | |||
119 | { | 110 | { |
120 | const struct gfs2_rgrp *str = buf; | 111 | const struct gfs2_rgrp *str = buf; |
121 | 112 | ||
122 | gfs2_meta_header_in(&rg->rg_header, buf); | ||
123 | rg->rg_flags = be32_to_cpu(str->rg_flags); | 113 | rg->rg_flags = be32_to_cpu(str->rg_flags); |
124 | rg->rg_free = be32_to_cpu(str->rg_free); | 114 | rg->rg_free = be32_to_cpu(str->rg_free); |
125 | rg->rg_dinodes = be32_to_cpu(str->rg_dinodes); | 115 | rg->rg_dinodes = be32_to_cpu(str->rg_dinodes); |
@@ -130,7 +120,6 @@ void gfs2_rgrp_out(const struct gfs2_rgrp_host *rg, void *buf) | |||
130 | { | 120 | { |
131 | struct gfs2_rgrp *str = buf; | 121 | struct gfs2_rgrp *str = buf; |
132 | 122 | ||
133 | gfs2_meta_header_out(&rg->rg_header, buf); | ||
134 | str->rg_flags = cpu_to_be32(rg->rg_flags); | 123 | str->rg_flags = cpu_to_be32(rg->rg_flags); |
135 | str->rg_free = cpu_to_be32(rg->rg_free); | 124 | str->rg_free = cpu_to_be32(rg->rg_free); |
136 | str->rg_dinodes = cpu_to_be32(rg->rg_dinodes); | 125 | str->rg_dinodes = cpu_to_be32(rg->rg_dinodes); |
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index 536575efb62a..8b7e4c1e32ae 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
@@ -213,8 +213,6 @@ struct gfs2_rgrp { | |||
213 | }; | 213 | }; |
214 | 214 | ||
215 | struct gfs2_rgrp_host { | 215 | struct gfs2_rgrp_host { |
216 | struct gfs2_meta_header_host rg_header; | ||
217 | |||
218 | __u32 rg_flags; | 216 | __u32 rg_flags; |
219 | __u32 rg_free; | 217 | __u32 rg_free; |
220 | __u32 rg_dinodes; | 218 | __u32 rg_dinodes; |