diff options
author | Jan Kara <jack@suse.cz> | 2013-04-12 00:03:42 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-12 00:03:42 -0400 |
commit | ae4647fb7654676fc44a97e86eb35f9f06b99f66 (patch) | |
tree | d53fc9a2c50c0fda4f5eda9507ca5cb824e6ed0c | |
parent | 7b001d6a0c0c7b92e989c2c3b1d8e151f1df1acc (diff) |
jbd2: reduce journal_head size
Remove unused t_cow_tid field (ext4 copy-on-write support doesn't seem
to be happening) and change b_modified and b_jlist to bitfields thus
saving 8 bytes in the structure.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
-rw-r--r-- | include/linux/journal-head.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/journal-head.h b/include/linux/journal-head.h index c18b46f8aeeb..13a3da25ff07 100644 --- a/include/linux/journal-head.h +++ b/include/linux/journal-head.h | |||
@@ -31,21 +31,14 @@ struct journal_head { | |||
31 | /* | 31 | /* |
32 | * Journalling list for this buffer [jbd_lock_bh_state()] | 32 | * Journalling list for this buffer [jbd_lock_bh_state()] |
33 | */ | 33 | */ |
34 | unsigned b_jlist; | 34 | unsigned b_jlist:4; |
35 | 35 | ||
36 | /* | 36 | /* |
37 | * This flag signals the buffer has been modified by | 37 | * This flag signals the buffer has been modified by |
38 | * the currently running transaction | 38 | * the currently running transaction |
39 | * [jbd_lock_bh_state()] | 39 | * [jbd_lock_bh_state()] |
40 | */ | 40 | */ |
41 | unsigned b_modified; | 41 | unsigned b_modified:1; |
42 | |||
43 | /* | ||
44 | * This feild tracks the last transaction id in which this buffer | ||
45 | * has been cowed | ||
46 | * [jbd_lock_bh_state()] | ||
47 | */ | ||
48 | tid_t b_cow_tid; | ||
49 | 42 | ||
50 | /* | 43 | /* |
51 | * Copy of the buffer data frozen for writing to the log. | 44 | * Copy of the buffer data frozen for writing to the log. |