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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:23 +0000 (18:01 -0700)
commitaf8d417a04564bca0348e7e3c749ab12a3e837ad
treece222a9643ba4a0afa675ed1f2d1b1447ec5174b
parent99eef8e9369abe009006b4fa7f6ca5086c09cf46
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>
include/linux/zpool.h [new file with mode: 0644]
mm/Kconfig
mm/Makefile
mm/zpool.c [new file with mode: 0644]
mm/zsmalloc.c