On Mon, Jan 7, 2013 at 12:24 PM, Seth Jennings <sjenning@xxxxxxxxxxxxxxxxxx> wrote: > zs_create_pool() currently takes a name argument which is > never used in any useful way. > > This patch removes it. > > Signed-off-by: Seth Jennnings <sjenning@xxxxxxxxxxxxxxxxxx> > --- > drivers/staging/zcache/zcache-main.c | 2 +- > drivers/staging/zram/zram_drv.c | 2 +- > drivers/staging/zsmalloc/zsmalloc-main.c | 7 +------ > drivers/staging/zsmalloc/zsmalloc.h | 2 +- > 4 files changed, 4 insertions(+), 9 deletions(-) > > diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c > index 674c754..6fa9f9a 100644 > --- a/drivers/staging/zcache/zcache-main.c > +++ b/drivers/staging/zcache/zcache-main.c > @@ -982,7 +982,7 @@ int zcache_new_client(uint16_t cli_id) > goto out; > cli->allocated = 1; > #ifdef CONFIG_FRONTSWAP > - cli->zspool = zs_create_pool("zcache", GFP_KERNEL); > + cli->zspool = zs_create_pool(GFP_KERNEL); > if (cli->zspool == NULL) > goto out; > idr_init(&cli->tmem_pools); > diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c > index 13e9b4b..13d9f6d 100644 > --- a/drivers/staging/zram/zram_drv.c > +++ b/drivers/staging/zram/zram_drv.c > @@ -576,7 +576,7 @@ int zram_init_device(struct zram *zram) > /* zram devices sort of resembles non-rotational disks */ > queue_flag_set_unlocked(QUEUE_FLAG_NONROT, zram->disk->queue); > > - zram->mem_pool = zs_create_pool("zram", GFP_KERNEL); > + zram->mem_pool = zs_create_pool(GFP_KERNEL); > if (!zram->mem_pool) { > pr_err("Error creating memory pool\n"); > ret = -ENOMEM; > diff --git a/drivers/staging/zsmalloc/zsmalloc-main.c b/drivers/staging/zsmalloc/zsmalloc-main.c > index 6ff380e..5e212c0 100644 > --- a/drivers/staging/zsmalloc/zsmalloc-main.c > +++ b/drivers/staging/zsmalloc/zsmalloc-main.c > @@ -796,14 +796,11 @@ fail: > return notifier_to_errno(ret); > } > > -struct zs_pool *zs_create_pool(const char *name, gfp_t flags) > +struct zs_pool *zs_create_pool(gfp_t flags) > { > int i, ovhd_size; > struct zs_pool *pool; > > - if (!name) > - return NULL; > - > ovhd_size = roundup(sizeof(*pool), PAGE_SIZE); > pool = kzalloc(ovhd_size, flags); > if (!pool) > @@ -825,8 +822,6 @@ struct zs_pool *zs_create_pool(const char *name, gfp_t flags) > > } > > - pool->name = name; > - > return pool; > } > EXPORT_SYMBOL_GPL(zs_create_pool); > diff --git a/drivers/staging/zsmalloc/zsmalloc.h b/drivers/staging/zsmalloc/zsmalloc.h > index 907ff03..25a4b4d 100644 > --- a/drivers/staging/zsmalloc/zsmalloc.h > +++ b/drivers/staging/zsmalloc/zsmalloc.h > @@ -28,7 +28,7 @@ enum zs_mapmode { > > struct zs_pool; > > -struct zs_pool *zs_create_pool(const char *name, gfp_t flags); > +struct zs_pool *zs_create_pool(gfp_t flags); > void zs_destroy_pool(struct zs_pool *pool); > > unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t flags); > -- > 1.7.9.5 > Acked-by: Nitin Gupta <ngupta@xxxxxxxxxx> _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel