zram/zcomp: do not zero out zcomp private pages
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Thu, 14 Jan 2016 23:22:35 +0000 (15:22 -0800)
committerDanny Wood <danwood76@gmail.com>
Tue, 14 Sep 2021 19:03:00 +0000 (20:03 +0100)
commit31c4cf411958614d229ac3d178aa63e4a8ed94e4
treef0fa11c42b0d59302c09c58b4bd224be9d784cec
parentcd681c03c823c40d16c17b4f3d70ac837706eca3
zram/zcomp: do not zero out zcomp private pages

Do not __GFP_ZERO allocated zcomp ->private pages.  We keep allocated
streams around and use them for read/write requests, so we supply a
zeroed out ->private to compression algorithm as a scratch buffer only
once -- the first time we use that stream.  For the rest of IO requests
served by this stream ->private usually contains some temporarily data
from the previous requests.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Change-Id: Icf20e8a707f7c925952034bc691e6ae593ef6f22
drivers/block/zram/zcomp_lz4.c
drivers/block/zram/zcomp_lzo.c