libgfs2: Remove struct gfs_rindex from header, etc
From 68d716d56f92c413303ac5923ae9b720a6817413 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Wed, 21 Dec 2011 14:09:03 +0000
Subject: [PATCH] libgfs2: Remove struct gfs_rindex from header, etc
Since struct gfs_rindex is identical to gfs2_rindex, we don't really need two structures. It was used in two places. Once to define an unused member of a union with a gfs2_rindex and once to define a buffer size (which I think was a mistake anyway since the buffer contains a struct gfs2_rindex anyway.
Signed-off-by Steven Whitehouse <[email protected]>
gfs2/edit/extended.c +1 -1
@@ -500,7 +500,7 @@ static int parse_rindex(struct gfs2_inode *dip, int print_rindex) {int error, start_line;struct gfs2_rindex ri; -char rbuf[sizeof (struct gfs_rindex )]; +char rbuf[sizeof (struct gfs2_rindex )];char highlighted_addr[32 ]; start_line = line;
gfs2/libgfs2/libgfs2.h +0 -13
@@ -579,19 +579,6 @@ struct gfs_log_header {char lh_reserved[64 ]; }; -struct gfs_rindex { -uint64_t ri_addr;/* block # of 1st block (header) in rgrp */ -uint32_t ri_length;/* # fs blocks containing rgrp header & bitmap */ -uint32_t ri_pad; - -uint64_t ri_data1;/* block # of first data/meta block in rgrp */ -uint32_t ri_data;/* number (qty) of data/meta blocks in rgrp */ - -uint32_t ri_bitbytes;/* total # bytes used by block alloc bitmap */ - -char ri_reserved[64 ]; -}; -struct gfs_jindex {uint64_t ji_addr;/* starting block of the journal */ uint32_t ji_nsegment;/* number (quantity) of segments in journal */
gfs2/libgfs2/super.c +0 -1
@@ -135,7 +135,6 @@ int rindex_read(struct gfs2_sbd *sdp, int fd, int *count1, int *sane)unsigned int rg;int error;union { -struct gfs_rindex bufgfs1;struct gfs2_rindex bufgfs2; } buf;struct gfs2_rindex ri;
Signature · 1 line
1.7.4.4
----- Original Message -----
| >From 68d716d56f92c413303ac5923ae9b720a6817413 Mon Sep 17 00:00:00 | >2001 | From: Steven Whitehouse <[email protected]> | Date: Wed, 21 Dec 2011 14:09:03 +0000 | Subject: [PATCH] libgfs2: Remove struct gfs_rindex from header, etc | | Since struct gfs_rindex is identical to gfs2_rindex, we don't | really need two structures. It was used in two places. Once | to define an unused member of a union with a gfs2_rindex and | once to define a buffer size (which I think was a mistake anyway | since the buffer contains a struct gfs2_rindex anyway. | | Signed-off-by: Steven Whitehouse <[email protected]>
Hi,
ACKed by Bob Peterson <[email protected]>
Regards,
Bob Peterson
Red Hat File Systems