]> git.baikalelectronics.ru Git - kernel.git/commit
mm/zpool: add name argument to create zpool
authorGanesh Mahendran <opensource.ganesh@gmail.com>
Thu, 12 Feb 2015 23:00:51 +0000 (15:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Feb 2015 02:54:12 +0000 (18:54 -0800)
commitbff8b17d26bbb9bf31c98cefcd326112f5e31853
treeae8732c7012ccee1573769e2a686eb98df173bca
parent99d41adf61d73b1e94e27130cc7e6b8143ad8edb
mm/zpool: add name argument to create zpool

Currently the underlay of zpool: zsmalloc/zbud, do not know who creates
them.  There is not a method to let zsmalloc/zbud find which caller they
belong to.

Now we want to add statistics collection in zsmalloc.  We need to name the
debugfs dir for each pool created.  The way suggested by Minchan Kim is to
use a name passed by caller(such as zram) to create the zsmalloc pool.

    /sys/kernel/debug/zsmalloc/zram0

This patch adds an argument `name' to zs_create_pool() and other related
functions.

Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Seth Jennings <sjennings@variantweb.net>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/zram/zram_drv.c
include/linux/zpool.h
include/linux/zsmalloc.h
mm/zbud.c
mm/zpool.c
mm/zsmalloc.c
mm/zswap.c