diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-02-23 06:46:01 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-02-23 06:46:01 -0500 |
commit | 8dc207c0e7a259e7122ddfaf56b8bbbc3c92d685 (patch) | |
tree | 68f3cfcf4d2f55c3e7fd8128b30c80b6d54679b1 /kernel/trace/trace_hw_branches.c | |
parent | ed5bde0bf8995d7d8c0b5a9c33e624a945f333ef (diff) |
ext4: Save stack space by removing fake buffer heads
Struct mpage_da_data and mpage_add_bh_to_extent() use a fake struct
buffer_head which is 104 bytes on an x86_64 system, but only use 24
bytes of the structure. On systems that use a spinlock for atomic_t,
the stack savings will be even greater.
It turns out that using a fake struct buffer_head doesn't even save
that much code, and it makes the code more confusing since it's not
used as a "real" buffer head. So just store pass b_size and b_state
in mpage_add_bh_to_extent(), and store b_size, b_state, and b_block_nr
in the mpage_da_data structure.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'kernel/trace/trace_hw_branches.c')
0 files changed, 0 insertions, 0 deletions