Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -3
+2 -2
fs/gfs2/incore.h
··· 462 462 unsigned int tr_blocks; 463 463 unsigned int tr_revokes; 464 464 unsigned int tr_reserved; 465 + unsigned int tr_touched:1; 466 + unsigned int tr_attached:1; 465 467 466 468 struct gfs2_holder tr_t_gh; 467 469 468 - int tr_touched; 469 - int tr_attached; 470 470 471 471 unsigned int tr_num_buf_new; 472 472 unsigned int tr_num_databuf_new;
+1 -1
fs/gfs2/trans.c
··· 98 98 { 99 99 printk(KERN_WARNING "GFS2: Transaction created at: %pSR\n", 100 100 (void *)tr->tr_ip); 101 - printk(KERN_WARNING "GFS2: blocks=%u revokes=%u reserved=%u touched=%d\n", 101 + printk(KERN_WARNING "GFS2: blocks=%u revokes=%u reserved=%u touched=%u\n", 102 102 tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, tr->tr_touched); 103 103 printk(KERN_WARNING "GFS2: Buf %u/%u Databuf %u/%u Revoke %u/%u\n", 104 104 tr->tr_num_buf_new, tr->tr_num_buf_rm,