Files
linux/drivers
Sergey Senozhatsky bece429b72 BACKPORT: zsmalloc: require GFP in zs_malloc()
Pass GFP flags to zs_malloc() instead of using a fixed mask supplied to
zs_create_pool(), so we can be more flexible, but, more importantly, we
need this to switch zram to per-cpu compression streams -- zram will try
to allocate handle with preemption disabled in a fast path and switch to
a slow path (using different gfp mask) if the fast one has failed.

Apart from that, this also align zs_malloc() interface with zspool/zbud.

[sergey.senozhatsky@gmail.com: pass GFP flags to zs_malloc() instead of using a fixed mask]
  Link: http://lkml.kernel.org/r/20160429150942.GA637@swordfish
Link: http://lkml.kernel.org/r/20160429150942.GA637@swordfish
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>

(cherry picked from commit d0d8da2dc4)
Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 112488418
Change-Id: I31276c9351be21a4ed588681b332e98142b76526
2018-08-23 12:00:15 -07:00
..
2018-08-06 16:24:36 +02:00
2018-07-22 14:25:52 +02:00
2018-08-15 18:20:41 +02:00
2018-07-03 18:23:34 +02:00
2018-05-30 13:25:24 +02:00
2018-06-16 09:54:26 +02:00
2018-08-06 19:12:19 +02:00
2018-08-06 19:12:19 +02:00
2018-02-25 11:03:46 +01:00
2018-02-25 11:03:51 +01:00
2018-08-06 19:12:19 +02:00
2018-05-30 13:25:24 +02:00
2018-08-22 07:48:38 +02:00
2018-08-06 19:12:19 +02:00
2018-07-17 12:15:52 +02:00
2018-05-30 13:25:24 +02:00
2018-08-06 19:12:19 +02:00
2018-08-15 18:20:41 +02:00
2018-03-22 09:57:28 +01:00
2018-07-03 18:23:34 +02:00
2018-03-22 09:57:28 +01:00
2018-03-25 10:51:55 +02:00
2018-07-25 10:18:17 +02:00
2018-08-06 19:12:19 +02:00
2018-08-15 18:20:41 +02:00
2018-07-11 16:24:21 +02:00
2018-08-22 08:08:40 +02:00
2018-08-22 08:08:40 +02:00
2018-07-03 18:23:34 +02:00
2018-07-03 18:23:34 +02:00
2017-12-02 06:53:27 +00:00
2018-02-26 09:24:57 +01:00