aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-06-06 14:49:39 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-06-06 14:49:39 -0400
commit6b61b072a8b54212ab0808c443e5c16699390d25 (patch)
treed7cfa9b5f6ce3819177642c89cb11312f3c2f9d9 /fs/gfs2
parent4b01abc977574253f466f65463019de2571c6401 (diff)
[GFS2] Move some fields around to reduce wasted space
We can reclaim some space by moving fields in some structures in order to allow them to pack better on 64 bit architectures. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/incore.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 92091d006a02..8caefec88854 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -158,7 +158,7 @@ struct gfs2_holder {
158 unsigned gh_flags; 158 unsigned gh_flags;
159 159
160 int gh_error; 160 int gh_error;
161 unsigned long gh_iflags; 161 unsigned gh_iflags;
162 struct completion gh_wait; 162 struct completion gh_wait;
163 unsigned long gh_ip; 163 unsigned long gh_ip;
164}; 164};
@@ -217,25 +217,21 @@ struct gfs2_glock {
217struct gfs2_alloc { 217struct gfs2_alloc {
218 /* Quota stuff */ 218 /* Quota stuff */
219 219
220 unsigned int al_qd_num;
221 struct gfs2_quota_data *al_qd[4]; 220 struct gfs2_quota_data *al_qd[4];
222 struct gfs2_holder al_qd_ghs[4]; 221 struct gfs2_holder al_qd_ghs[4];
222 unsigned int al_qd_num;
223 223
224 /* Filled in by the caller to gfs2_inplace_reserve() */ 224 u32 al_requested; /* Filled in by caller of gfs2_inplace_reserve() */
225 225 u32 al_alloced; /* Filled in by gfs2_alloc_*() */
226 uint32_t al_requested;
227 226
228 /* Filled in by gfs2_inplace_reserve() */ 227 /* Filled in by gfs2_inplace_reserve() */
229 228
230 char *al_file;
231 unsigned int al_line; 229 unsigned int al_line;
230 char *al_file;
232 struct gfs2_holder al_ri_gh; 231 struct gfs2_holder al_ri_gh;
233 struct gfs2_holder al_rgd_gh; 232 struct gfs2_holder al_rgd_gh;
234 struct gfs2_rgrpd *al_rgd; 233 struct gfs2_rgrpd *al_rgd;
235 234
236 /* Filled in by gfs2_alloc_*() */
237
238 uint32_t al_alloced;
239}; 235};
240 236
241enum { 237enum {