diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2014-02-21 11:52:00 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-02-21 11:52:00 +0000 |
commit | 654a6d2f962edb7bf85973cfe93a04e24f56f902 (patch) | |
tree | 9cb1039858cc72ea458ca5df705d27040b522440 /fs/gfs2/incore.h | |
parent | ad781971d9b8b409be09645be56d160865c952a6 (diff) | |
download | linux-654a6d2f962edb7bf85973cfe93a04e24f56f902.tar.gz linux-654a6d2f962edb7bf85973cfe93a04e24f56f902.tar.bz2 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.h | 4 |
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; |