diff options
| author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2016-01-14 15:22:35 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:18 +0200 |
| commit | d13c0c08323df29367affc7b7623d9d2d0ccfbb2 (patch) | |
| tree | 3610370feee028c214c4be9e703a85d6b24d08bf /Documentation/development-process/4.Coding | |
| parent | 6d22d73c07a0f2ffe706e88c302d52371ad29206 (diff) | |
UPSTREAM: zram/zcomp: do not zero out zcomp private pages
(cherry picked from commit e02d238c9852a91b30da9ea32ce36d1416cdc683)
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>
Diffstat (limited to 'Documentation/development-process/4.Coding')
0 files changed, 0 insertions, 0 deletions
