mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
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>
This commit is contained in:
parent
69e18f4dbe
commit
6f3526d6db
5 changed files with 13 additions and 11 deletions
|
@ -38,7 +38,7 @@ enum zpool_mapmode {
|
|||
|
||||
bool zpool_has_pool(char *type);
|
||||
|
||||
struct zpool *zpool_create_pool(char *type, char *name,
|
||||
struct zpool *zpool_create_pool(const char *type, const char *name,
|
||||
gfp_t gfp, const struct zpool_ops *ops);
|
||||
|
||||
const char *zpool_get_type(struct zpool *pool);
|
||||
|
@ -83,7 +83,9 @@ struct zpool_driver {
|
|||
atomic_t refcount;
|
||||
struct list_head list;
|
||||
|
||||
void *(*create)(char *name, gfp_t gfp, const struct zpool_ops *ops,
|
||||
void *(*create)(const char *name,
|
||||
gfp_t gfp,
|
||||
const struct zpool_ops *ops,
|
||||
struct zpool *zpool);
|
||||
void (*destroy)(void *pool);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue