From ec13f388df8d7c8af322f2ae2abf87640e6de7e8 Mon Sep 17 00:00:00 2001 From: Davidlohr Bueso Date: Fri, 4 Jan 2013 12:14:00 -0800 Subject: [PATCH] --- yaml --- r: 353991 b: refs/heads/master c: 4bbc0bc06b8b0cced31ee17beb753ad51a2e47e7 h: refs/heads/master i: 353989: 6128b018731dd7ad2c5aee4290d4c7c740e48c53 353987: 55e0c9bdf4f4d40e814838c1a9ce1f227c883707 353983: bda895f7070e502311776ce8bbe803b7f28f6dc8 v: v3 --- [refs] | 2 +- trunk/drivers/staging/zsmalloc/zsmalloc-main.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e79df65e47ac..409118f5c9ae 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1867fa64ff08b59d2c65f598c4d272397d4863c6 +refs/heads/master: 4bbc0bc06b8b0cced31ee17beb753ad51a2e47e7 diff --git a/trunk/drivers/staging/zsmalloc/zsmalloc-main.c b/trunk/drivers/staging/zsmalloc/zsmalloc-main.c index 09a9d35d436f..eb0077261ac6 100644 --- a/trunk/drivers/staging/zsmalloc/zsmalloc-main.c +++ b/trunk/drivers/staging/zsmalloc/zsmalloc-main.c @@ -798,6 +798,17 @@ static int zs_init(void) return notifier_to_errno(ret); } +/** + * zs_create_pool - Creates an allocation pool to work from. + * @name: name of the pool to be created + * @flags: allocation flags used when growing pool + * + * This function must be called before anything when using + * the zsmalloc allocator. + * + * On success, a pointer to the newly created pool is returned, + * otherwise NULL. + */ struct zs_pool *zs_create_pool(const char *name, gfp_t flags) { int i, ovhd_size;