aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zpl_super.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2016-05-09 22:15:30 +0300
committerBrian Behlendorf <[email protected]>2016-05-11 12:14:24 -0700
commit04bc461062df8e272aa11268668140c2976ac823 (patch)
tree4fc82710a9c9fcd944a9dfb8a82a11978677b58b /module/zfs/zpl_super.c
parent2a8b84b747cb27a175aa3a45b8cdb293cde31886 (diff)
Reduce stack usage of dmu_recv_stream function
The receive_writer_arg and receive_arg structures become large when ZFS is compiled with debugging enabled. This results in gcc throwing an error about excessive stack usage: module/zfs/dmu_send.c: In function ‘dmu_recv_stream’: module/zfs/dmu_send.c:2502:1: error: the frame size of 1256 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Fix this by allocating those functions on the heap, rather than on the stack. With patch: dmu_send.c:2350:1:dmu_recv_stream 240 static Without patch: dmu_send.c:2350:1:dmu_recv_stream 1336 static Signed-off-by: Nikolay Borisov <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4620
Diffstat (limited to 'module/zfs/zpl_super.c')
0 files changed, 0 insertions, 0 deletions