summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2014-02-21 12:52:00 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2014-02-21 12:52:00 +0100
commit654a6d2f962edb7bf85973cfe93a04e24f56f902 (patch)
tree9cb1039858cc72ea458ca5df705d27040b522440 /fs/gfs2/incore.h
parentGFS2: add missing newline (diff)
downloadlinux-654a6d2f962edb7bf85973cfe93a04e24f56f902.tar.xz
linux-654a6d2f962edb7bf85973cfe93a04e24f56f902.zip
GFS2: Reduce struct gfs2_trans in size
A couple of "int" fields were being used as boolean values so we can make them bitfields of one bit, and put them in what might otherwise be a hole in the structure with 64 bit alignment. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index cf0e34400f71..645655cccdc8 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -462,11 +462,11 @@ struct gfs2_trans {
unsigned int tr_blocks;
unsigned int tr_revokes;
unsigned int tr_reserved;
+ unsigned int tr_touched:1;
+ unsigned int tr_attached:1;
struct gfs2_holder tr_t_gh;
- int tr_touched;
- int tr_attached;
unsigned int tr_num_buf_new;
unsigned int tr_num_databuf_new;