Re: [PATCH 3/4] zstd: move params structure to global variable to reduce stack usage

2019-06-03 Thread Andrew Morton
On Mon, 3 Jun 2019 14:32:05 +0530 Maninder Singh wrote: > > Subject: [PATCH 3/4] zstd: move params structure to global variable to reduce > stack usage If this affected lib/zstd/ I'd be alarmed. But it's a client of lib/zstd that is choosing to have a single kernel-wide

[PATCH 3/4] zstd: move params structure to global variable to reduce stack usage

2019-06-03 Thread Maninder Singh
As params structure remains same for lifetime, just initialise it at init time and make it global variable. Signed-off-by: Maninder Singh Signed-off-by: Vaneet Narang --- crypto/zstd.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crypto/zstd.c b/crypto/zstd.c ind