]> Pileus Git - ~andy/linux/commitdiff
[GFS2] split gfs2_sb
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Oct 2006 00:45:02 +0000 (20:45 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:33:00 +0000 (10:33 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/incore.h
fs/gfs2/ondisk.c
fs/gfs2/super.c
fs/gfs2/super.h
include/linux/gfs2_ondisk.h

index 1c876e0fb44aa0823a7b6041713560515ec6a6d6..bd596ba74e5605f9e1740de4f316b1a4645517d6 100644 (file)
@@ -450,7 +450,7 @@ struct gfs2_sbd {
        struct super_block *sd_vfs_meta;
        struct kobject sd_kobj;
        unsigned long sd_flags; /* SDF_... */
-       struct gfs2_sb sd_sb;
+       struct gfs2_sb_host sd_sb;
 
        /* Constants computed on mount */
 
index 52cb9a2dc0588c4c506e35a6ffd62b4be8cb5e1f..5b32f1a35794216a3858f4908ed3141ecded3df9 100644 (file)
@@ -79,7 +79,7 @@ static void gfs2_meta_header_print(const struct gfs2_meta_header *mh)
        pv(mh, mh_format, "%u");
 }
 
-void gfs2_sb_in(struct gfs2_sb *sb, const void *buf)
+void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf)
 {
        const struct gfs2_sb *str = buf;
 
index 6a78b1b32e25597fac6a2ef0e0f13d7a2c3be78e..52aa3221fc99e23ae9082a026a71a8fbbaec1491 100644 (file)
@@ -97,7 +97,7 @@ void gfs2_tune_init(struct gfs2_tune *gt)
  * changed.
  */
 
-int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent)
+int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb_host *sb, int silent)
 {
        unsigned int x;
 
index 5bb443ae0f5902c5ab51437d6b04294aa3d2e1b1..ac95064c1e5abb1737d3dcbcf0e1578245dba1eb 100644 (file)
@@ -14,7 +14,7 @@
 
 void gfs2_tune_init(struct gfs2_tune *gt);
 
-int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent);
+int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb_host *sb, int silent);
 int gfs2_read_sb(struct gfs2_sbd *sdp, struct gfs2_glock *gl, int silent);
 struct page *gfs2_read_super(struct super_block *sb, sector_t sector);
 
index 0e67a89a96994b1551b5aa951798b16de3ba4b81..b7bdfef82e4ee80e4365a49cb60a9cad48551118 100644 (file)
@@ -128,6 +128,26 @@ struct gfs2_sb {
        /* In gfs1, quota and license dinodes followed */
 };
 
+struct gfs2_sb_host {
+       struct gfs2_meta_header sb_header;
+
+       __be32 sb_fs_format;
+       __be32 sb_multihost_format;
+       __u32  __pad0;  /* Was superblock flags in gfs1 */
+
+       __be32 sb_bsize;
+       __be32 sb_bsize_shift;
+       __u32 __pad1;   /* Was journal segment size in gfs1 */
+
+       struct gfs2_inum sb_master_dir; /* Was jindex dinode in gfs1 */
+       struct gfs2_inum __pad2; /* Was rindex dinode in gfs1 */
+       struct gfs2_inum sb_root_dir;
+
+       char sb_lockproto[GFS2_LOCKNAME_LEN];
+       char sb_locktable[GFS2_LOCKNAME_LEN];
+       /* In gfs1, quota and license dinodes followed */
+};
+
 /*
  * resource index structure
  */
@@ -450,7 +470,7 @@ struct gfs2_quota_change {
 
 extern void gfs2_inum_in(struct gfs2_inum *no, const void *buf);
 extern void gfs2_inum_out(const struct gfs2_inum *no, void *buf);
-extern void gfs2_sb_in(struct gfs2_sb *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_out(const struct gfs2_rindex *ri, void *buf);
 extern void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf);