diff options
| author | Arnd Bergmann <[email protected]> | 2019-07-08 14:40:09 +0200 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-09-09 14:58:58 +0200 |
| commit | 8ddc319706e5ca201a128e3f2477938d7f174ca8 (patch) | |
| tree | e20a4e6ee2aeb65637296365fd8e74fa39f84680 /tools/perf/scripts/python/sched-migration.py | |
| parent | 99fccf33c203f63ea10e611c505a26686b0b8738 (diff) | |
btrfs: reduce stack usage for btrfsic_process_written_block
btrfsic_process_written_block() cals btrfsic_process_metablock(),
which has a fairly large stack usage due to the btrfsic_stack_frame
variable. It also calls btrfsic_test_for_metadata(), which now
needs several hundreds of bytes for its SHASH_DESC_ON_STACK().
In some configurations, we end up with both functions on the
same stack, and gcc warns about the excessive stack usage that
might cause the available stack space to run out:
fs/btrfs/check-integrity.c:1743:13: error: stack frame size of 1152 bytes in function 'btrfsic_process_written_block' [-Werror,-Wframe-larger-than=]
Marking both child functions as noinline_for_stack helps because
this guarantees that the large variables are not on the same
stack frame.
Fixes: d5178578bcd4 ("btrfs: directly call into crypto framework for checksumming")
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions