aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2008-11-04 05:32:57 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2009-01-05 02:39:03 -0500
commit73f749483ed18f3b5759909cc4187b1741f54b10 (patch)
tree67acf16f388e35861f6e1c998fa5e049af98f4d0 /fs/gfs2/incore.h
parentcfc8b54922db7b647b6d88914dc7ef8c63b6671d (diff)
GFS2: Banish struct gfs2_rgrpd_host
This patch moves the final field so that we can get rid of struct gfs2_rgrpd_host, as promised some time ago. Also by rearranging the fields slightly, we are able to reduce the size of the gfs2_rgrpd structure at the same time. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index f8d977362515..9e3b613d0bac 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -68,10 +68,6 @@ struct gfs2_bitmap {
68 u32 bi_len; 68 u32 bi_len;
69}; 69};
70 70
71struct gfs2_rgrp_host {
72 u32 rg_dinodes;
73};
74
75struct gfs2_rgrpd { 71struct gfs2_rgrpd {
76 struct list_head rd_list; /* Link with superblock */ 72 struct list_head rd_list; /* Link with superblock */
77 struct list_head rd_list_mru; 73 struct list_head rd_list_mru;
@@ -82,15 +78,15 @@ struct gfs2_rgrpd {
82 u32 rd_data; /* num of data blocks in rgrp */ 78 u32 rd_data; /* num of data blocks in rgrp */
83 u32 rd_bitbytes; /* number of bytes in data bitmaps */ 79 u32 rd_bitbytes; /* number of bytes in data bitmaps */
84 u32 rd_free; 80 u32 rd_free;
85 struct gfs2_rgrp_host rd_rg; 81 u32 rd_free_clone;
82 u32 rd_dinodes;
86 u64 rd_igeneration; 83 u64 rd_igeneration;
87 struct gfs2_bitmap *rd_bits; 84 struct gfs2_bitmap *rd_bits;
88 unsigned int rd_bh_count;
89 struct mutex rd_mutex; 85 struct mutex rd_mutex;
90 u32 rd_free_clone;
91 struct gfs2_log_element rd_le; 86 struct gfs2_log_element rd_le;
92 u32 rd_last_alloc;
93 struct gfs2_sbd *rd_sbd; 87 struct gfs2_sbd *rd_sbd;
88 unsigned int rd_bh_count;
89 u32 rd_last_alloc;
94 unsigned char rd_flags; 90 unsigned char rd_flags;
95#define GFS2_RDF_CHECK 0x01 /* Need to check for unlinked inodes */ 91#define GFS2_RDF_CHECK 0x01 /* Need to check for unlinked inodes */
96#define GFS2_RDF_NOALLOC 0x02 /* rg prohibits allocation */ 92#define GFS2_RDF_NOALLOC 0x02 /* rg prohibits allocation */