Commit 68826664 authored by Al Viro's avatar Al Viro Committed by Steven Whitehouse

[GFS2] split and annotate gfs2_rgrp

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent bc558c87
...@@ -68,7 +68,7 @@ struct gfs2_rgrpd { ...@@ -68,7 +68,7 @@ struct gfs2_rgrpd {
struct list_head rd_recent; /* Recently used rgrps */ struct list_head rd_recent; /* Recently used rgrps */
struct gfs2_glock *rd_gl; /* Glock for this rgrp */ struct gfs2_glock *rd_gl; /* Glock for this rgrp */
struct gfs2_rindex rd_ri; struct gfs2_rindex rd_ri;
struct gfs2_rgrp rd_rg; struct gfs2_rgrp_host rd_rg;
u64 rd_rg_vn; u64 rd_rg_vn;
struct gfs2_bitmap *rd_bits; struct gfs2_bitmap *rd_bits;
unsigned int rd_bh_count; unsigned int rd_bh_count;
......
...@@ -120,7 +120,7 @@ void gfs2_rindex_print(const struct gfs2_rindex *ri) ...@@ -120,7 +120,7 @@ void gfs2_rindex_print(const struct gfs2_rindex *ri)
pv(ri, ri_bitbytes, "%u"); pv(ri, ri_bitbytes, "%u");
} }
void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf) void gfs2_rgrp_in(struct gfs2_rgrp_host *rg, const void *buf)
{ {
const struct gfs2_rgrp *str = buf; const struct gfs2_rgrp *str = buf;
...@@ -131,7 +131,7 @@ void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf) ...@@ -131,7 +131,7 @@ void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf)
rg->rg_igeneration = be64_to_cpu(str->rg_igeneration); rg->rg_igeneration = be64_to_cpu(str->rg_igeneration);
} }
void gfs2_rgrp_out(const struct gfs2_rgrp *rg, void *buf) void gfs2_rgrp_out(const struct gfs2_rgrp_host *rg, void *buf)
{ {
struct gfs2_rgrp *str = buf; struct gfs2_rgrp *str = buf;
......
...@@ -193,6 +193,15 @@ struct gfs2_rgrp { ...@@ -193,6 +193,15 @@ struct gfs2_rgrp {
__u8 rg_reserved[80]; /* Several fields from gfs1 now reserved */ __u8 rg_reserved[80]; /* Several fields from gfs1 now reserved */
}; };
struct gfs2_rgrp_host {
struct gfs2_meta_header rg_header;
__u32 rg_flags;
__u32 rg_free;
__u32 rg_dinodes;
__u64 rg_igeneration;
};
/* /*
* quota structure * quota structure
*/ */
...@@ -470,8 +479,8 @@ extern void gfs2_inum_out(const struct gfs2_inum *no, void *buf); ...@@ -470,8 +479,8 @@ extern void gfs2_inum_out(const struct gfs2_inum *no, void *buf);
extern void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf); extern void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf);
extern void gfs2_rindex_in(struct gfs2_rindex *ri, const void *buf); extern void gfs2_rindex_in(struct gfs2_rindex *ri, const void *buf);
extern void gfs2_rindex_out(const struct gfs2_rindex *ri, void *buf); extern void gfs2_rindex_out(const struct gfs2_rindex *ri, void *buf);
extern void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf); extern void gfs2_rgrp_in(struct gfs2_rgrp_host *rg, const void *buf);
extern void gfs2_rgrp_out(const struct gfs2_rgrp *rg, void *buf); extern void gfs2_rgrp_out(const struct gfs2_rgrp_host *rg, void *buf);
extern void gfs2_quota_in(struct gfs2_quota *qu, const void *buf); extern void gfs2_quota_in(struct gfs2_quota *qu, const void *buf);
extern void gfs2_quota_out(const struct gfs2_quota *qu, void *buf); extern void gfs2_quota_out(const struct gfs2_quota *qu, void *buf);
extern void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf); extern void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment