mm/zpool: implement common zpool api to zbud/zsmalloc
authorDan Streetman <ddstreet@ieee.org>
Wed, 6 Aug 2014 23:08:36 +0000 (16:08 -0700)
committerAlex Shi <alex.shi@linaro.org>
Mon, 11 May 2015 13:17:11 +0000 (21:17 +0800)
commit301b07c9f41b4f4111ac53336647788cd89af76d
treebdc7ddfb5b293dea989cccdb466ca0e2081016e1
parent3a4d2c69adaee7391fcdbc782913629df2e49726
mm/zpool: implement common zpool api to zbud/zsmalloc

Add zpool api.

zpool provides an interface for memory storage, typically of compressed
memory.  Users can select what backend to use; currently the only
implementations are zbud, a low density implementation with up to two
compressed pages per storage page, and zsmalloc, a higher density
implementation with multiple compressed pages per storage page.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Tested-by: Seth Jennings <sjennings@variantweb.net>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Weijie Yang <weijie.yang@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit af8d417a04564bca0348e7e3c749ab12a3e837ad)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
 Conflicts:
mm/Kconfig
mm/Makefile
include/linux/zpool.h [new file with mode: 0644]
mm/Kconfig
mm/Makefile
mm/zpool.c [new file with mode: 0644]
mm/zsmalloc.c