Skip to content

Commit

Permalink
[GFS2] fields of gfs2_sb_host are host-endian
Browse files Browse the repository at this point in the history
... and several could be killed, but that's another story.
Annotate scalar ones, kill completely unused.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Al Viro authored and Steven Whitehouse committed Nov 30, 2006
1 parent f50dfaf commit bc558c8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions include/linux/gfs2_ondisk.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,13 @@ struct gfs2_sb {
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 */
__u32 sb_fs_format;
__u32 sb_multihost_format;

__be32 sb_bsize;
__be32 sb_bsize_shift;
__u32 __pad1; /* Was journal segment size in gfs1 */
__u32 sb_bsize;
__u32 sb_bsize_shift;

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];
Expand Down

0 comments on commit bc558c8

Please sign in to comment.