summaryrefslogtreecommitdiffstats
path: root/mm/zsmalloc.c
diff options
context:
space:
mode:
authorSergey SENOZHATSKY <sergey.senozhatsky@gmail.com>2015-11-06 19:29:21 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-06 20:50:42 -0500
commit6f3526d6db7cbe8b53e42d6bf0cad2072afcf3fe (patch)
treecb5743f33e0db27030a376cbe4f7d918b53b9e0a /mm/zsmalloc.c
parent69e18f4dbedfbf208452e9da9979c92da30d2442 (diff)
mm: zsmalloc: constify struct zs_pool name
Constify `struct zs_pool' ->name. [akpm@inux-foundation.org: constify zpool_create_pool()'s `type' arg also] Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Acked-by: Dan Streetman <ddstreet@ieee.org> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zsmalloc.c')
-rw-r--r--mm/zsmalloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index f135b1b6fcdc..8b8e0dac0a2a 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -237,7 +237,7 @@ struct link_free {
237}; 237};
238 238
239struct zs_pool { 239struct zs_pool {
240 char *name; 240 const char *name;
241 241
242 struct size_class **size_class; 242 struct size_class **size_class;
243 struct kmem_cache *handle_cachep; 243 struct kmem_cache *handle_cachep;
@@ -311,7 +311,7 @@ static void record_obj(unsigned long handle, unsigned long obj)
311 311
312#ifdef CONFIG_ZPOOL 312#ifdef CONFIG_ZPOOL
313 313
314static void *zs_zpool_create(char *name, gfp_t gfp, 314static void *zs_zpool_create(const char *name, gfp_t gfp,
315 const struct zpool_ops *zpool_ops, 315 const struct zpool_ops *zpool_ops,
316 struct zpool *zpool) 316 struct zpool *zpool)
317{ 317{
@@ -548,7 +548,7 @@ static const struct file_operations zs_stat_size_ops = {
548 .release = single_release, 548 .release = single_release,
549}; 549};
550 550
551static int zs_pool_stat_create(char *name, struct zs_pool *pool) 551static int zs_pool_stat_create(const char *name, struct zs_pool *pool)
552{ 552{
553 struct dentry *entry; 553 struct dentry *entry;
554 554
@@ -588,7 +588,7 @@ static void __exit zs_stat_exit(void)
588{ 588{
589} 589}
590 590
591static inline int zs_pool_stat_create(char *name, struct zs_pool *pool) 591static inline int zs_pool_stat_create(const char *name, struct zs_pool *pool)
592{ 592{
593 return 0; 593 return 0;
594} 594}
@@ -1866,7 +1866,7 @@ static int zs_register_shrinker(struct zs_pool *pool)
1866 * On success, a pointer to the newly created pool is returned, 1866 * On success, a pointer to the newly created pool is returned,
1867 * otherwise NULL. 1867 * otherwise NULL.
1868 */ 1868 */
1869struct zs_pool *zs_create_pool(char *name, gfp_t flags) 1869struct zs_pool *zs_create_pool(const char *name, gfp_t flags)
1870{ 1870{
1871 int i; 1871 int i;
1872 struct zs_pool *pool; 1872 struct zs_pool *pool;