aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2008-01-31 11:31:39 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2008-03-31 05:40:29 -0400
commitcf45b752c9f23939e40d823b0600bf876e97b0e0 (patch)
treee37042a2e1437a81a32bd2bf069b4e714deb3411 /fs/gfs2/incore.h
parentda755fdb414470d6dce3df12ad188de9131cf96c (diff)
[GFS2] Remove rgrp and glock version numbers
This patch further reduces GFS2's memory requirements by eliminating the 64-bit version number fields in lieu of a couple bits. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 8dee4672c3d8..e9c58dc76869 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -85,7 +85,6 @@ struct gfs2_rgrpd {
85 u32 rd_data; /* num of data blocks in rgrp */ 85 u32 rd_data; /* num of data blocks in rgrp */
86 u32 rd_bitbytes; /* number of bytes in data bitmaps */ 86 u32 rd_bitbytes; /* number of bytes in data bitmaps */
87 struct gfs2_rgrp_host rd_rg; 87 struct gfs2_rgrp_host rd_rg;
88 u64 rd_rg_vn;
89 struct gfs2_bitmap *rd_bits; 88 struct gfs2_bitmap *rd_bits;
90 unsigned int rd_bh_count; 89 unsigned int rd_bh_count;
91 struct mutex rd_mutex; 90 struct mutex rd_mutex;
@@ -97,6 +96,7 @@ struct gfs2_rgrpd {
97 unsigned char rd_flags; 96 unsigned char rd_flags;
98#define GFS2_RDF_CHECK 0x01 /* Need to check for unlinked inodes */ 97#define GFS2_RDF_CHECK 0x01 /* Need to check for unlinked inodes */
99#define GFS2_RDF_NOALLOC 0x02 /* rg prohibits allocation */ 98#define GFS2_RDF_NOALLOC 0x02 /* rg prohibits allocation */
99#define GFS2_RDF_UPTODATE 0x04 /* rg is up to date */
100}; 100};
101 101
102enum gfs2_state_bits { 102enum gfs2_state_bits {
@@ -196,7 +196,6 @@ struct gfs2_glock {
196 char *gl_lvb; 196 char *gl_lvb;
197 atomic_t gl_lvb_count; 197 atomic_t gl_lvb_count;
198 198
199 u64 gl_vn;
200 unsigned long gl_stamp; 199 unsigned long gl_stamp;
201 unsigned long gl_tchange; 200 unsigned long gl_tchange;
202 void *gl_object; 201 void *gl_object;
@@ -533,7 +532,7 @@ struct gfs2_sbd {
533 532
534 /* Resource group stuff */ 533 /* Resource group stuff */
535 534
536 u64 sd_rindex_vn; 535 int sd_rindex_uptodate;
537 spinlock_t sd_rindex_spin; 536 spinlock_t sd_rindex_spin;
538 struct mutex sd_rindex_mutex; 537 struct mutex sd_rindex_mutex;
539 struct list_head sd_rindex_list; 538 struct list_head sd_rindex_list;