diff options
author | Eric Sandeen <sandeen@redhat.com> | 2008-04-29 14:11:12 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-04-29 14:11:12 +0200 |
commit | 4ddfef7b41aebbbede73f361cb938800ba3072dc (patch) | |
tree | c4d0b722424220a02af393b7be7298e456ba4954 /kernel | |
parent | Convert ext4 to use unlocked_ioctl (diff) | |
download | linux-4ddfef7b41aebbbede73f361cb938800ba3072dc.tar.xz linux-4ddfef7b41aebbbede73f361cb938800ba3072dc.zip |
ext4: reduce mballoc stack usage with noinline_for_stack
mballoc.c is a whole lot of static functions, which gcc seems to
really like to inline.
With the changes below, on x86, I can at least get from:
432 ext4_mb_new_blocks
240 ext4_mb_free_blocks
208 ext4_mb_discard_group_preallocations
188 ext4_mb_seq_groups_show
164 ext4_mb_init_cache
152 ext4_mb_release_inode_pa
136 ext4_mb_seq_history_show
...
to
220 ext4_mb_free_blocks
188 ext4_mb_seq_groups_show
176 ext4_mb_regular_allocator
164 ext4_mb_init_cache
156 ext4_mb_new_blocks
152 ext4_mb_release_inode_pa
136 ext4_mb_seq_history_show
124 ext4_mb_release_group_pa
...
which still has some big functions in there, but not 432 bytes!
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions