aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/gfs2/incore.h2
-rw-r--r--fs/gfs2/ondisk.c4
-rw-r--r--include/linux/gfs2_ondisk.h13
3 files changed, 14 insertions, 5 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index bd596ba74e56..8ca7a7f35062 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -68,7 +68,7 @@ struct gfs2_rgrpd {
68 struct list_head rd_recent; /* Recently used rgrps */ 68 struct list_head rd_recent; /* Recently used rgrps */
69 struct gfs2_glock *rd_gl; /* Glock for this rgrp */ 69 struct gfs2_glock *rd_gl; /* Glock for this rgrp */
70 struct gfs2_rindex rd_ri; 70 struct gfs2_rindex rd_ri;
71 struct gfs2_rgrp rd_rg; 71 struct gfs2_rgrp_host rd_rg;
72 u64 rd_rg_vn; 72 u64 rd_rg_vn;
73 struct gfs2_bitmap *rd_bits; 73 struct gfs2_bitmap *rd_bits;
74 unsigned int rd_bh_count; 74 unsigned int rd_bh_count;
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c
index 5b32f1a35794..3b156a15cd8d 100644
--- a/fs/gfs2/ondisk.c
+++ b/fs/gfs2/ondisk.c
@@ -120,7 +120,7 @@ void gfs2_rindex_print(const struct gfs2_rindex *ri)
120 pv(ri, ri_bitbytes, "%u"); 120 pv(ri, ri_bitbytes, "%u");
121} 121}
122 122
123void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf) 123void gfs2_rgrp_in(struct gfs2_rgrp_host *rg, const void *buf)
124{ 124{
125 const struct gfs2_rgrp *str = buf; 125 const struct gfs2_rgrp *str = buf;
126 126
@@ -131,7 +131,7 @@ void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf)
131 rg->rg_igeneration = be64_to_cpu(str->rg_igeneration); 131 rg->rg_igeneration = be64_to_cpu(str->rg_igeneration);
132} 132}
133 133
134void gfs2_rgrp_out(const struct gfs2_rgrp *rg, void *buf) 134void gfs2_rgrp_out(const struct gfs2_rgrp_host *rg, void *buf)
135{ 135{
136 struct gfs2_rgrp *str = buf; 136 struct gfs2_rgrp *str = buf;
137 137
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h
index a5d36cdc46e9..e4ca6e4176bb 100644
--- a/include/linux/gfs2_ondisk.h
+++ b/include/linux/gfs2_ondisk.h
@@ -193,6 +193,15 @@ struct gfs2_rgrp {
193 __u8 rg_reserved[80]; /* Several fields from gfs1 now reserved */ 193 __u8 rg_reserved[80]; /* Several fields from gfs1 now reserved */
194}; 194};
195 195
196struct gfs2_rgrp_host {
197 struct gfs2_meta_header rg_header;
198
199 __u32 rg_flags;
200 __u32 rg_free;
201 __u32 rg_dinodes;
202 __u64 rg_igeneration;
203};
204
196/* 205/*
197 * quota structure 206 * quota structure
198 */ 207 */
@@ -470,8 +479,8 @@ extern void gfs2_inum_out(const struct gfs2_inum *no, void *buf);
470extern void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf); 479extern void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf);
471extern void gfs2_rindex_in(struct gfs2_rindex *ri, const void *buf); 480extern void gfs2_rindex_in(struct gfs2_rindex *ri, const void *buf);
472extern void gfs2_rindex_out(const struct gfs2_rindex *ri, void *buf); 481extern void gfs2_rindex_out(const struct gfs2_rindex *ri, void *buf);
473extern void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf); 482extern void gfs2_rgrp_in(struct gfs2_rgrp_host *rg, const void *buf);
474extern void gfs2_rgrp_out(const struct gfs2_rgrp *rg, void *buf); 483extern void gfs2_rgrp_out(const struct gfs2_rgrp_host *rg, void *buf);
475extern void gfs2_quota_in(struct gfs2_quota *qu, const void *buf); 484extern void gfs2_quota_in(struct gfs2_quota *qu, const void *buf);
476extern void gfs2_quota_out(const struct gfs2_quota *qu, void *buf); 485extern void gfs2_quota_out(const struct gfs2_quota *qu, void *buf);
477extern void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf); 486extern void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf);