Re: [PATCH] btrfs: move some zstd work data from stack to workspace

2017-11-20 Thread David Sterba
On Thu, Nov 16, 2017 at 01:07:19AM +, Nick Terrell wrote: > On 11/15/17, 9:30 AM, "David Sterba" wrote: > > * ZSTD_inBuffer in_buf > > * ZSTD_outBuffer out_buf > > > > are used in all functions to pass the compression parameters and the > > local variables consume some space. We can move them

Re: [PATCH] btrfs: move some zstd work data from stack to workspace

2017-11-15 Thread Nick Terrell
On 11/15/17, 9:30 AM, "David Sterba" wrote: > * ZSTD_inBuffer in_buf > * ZSTD_outBuffer out_buf > > are used in all functions to pass the compression parameters and the > local variables consume some space. We can move them to the workspace > and reduce the stack consumption: > > zstd.c:zstd_decom

[PATCH] btrfs: move some zstd work data from stack to workspace

2017-11-15 Thread David Sterba
* ZSTD_inBuffer in_buf * ZSTD_outBuffer out_buf are used in all functions to pass the compression parameters and the local variables consume some space. We can move them to the workspace and reduce the stack consumption: zstd.c:zstd_decompress-24 (136 -> 112) zstd.c:zstd_d