1
0

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>
Este cometimento está contido em:
Sergey SENOZHATSKY
2015-11-06 16:29:21 -08:00
cometido por Linus Torvalds
ascendente 69e18f4dbe
cometimento 6f3526d6db
5 ficheiros modificados com 13 adições e 11 eliminações

Ver ficheiro

@@ -72,7 +72,7 @@ int zpool_unregister_driver(struct zpool_driver *driver)
EXPORT_SYMBOL(zpool_unregister_driver);
/* this assumes @type is null-terminated. */
static struct zpool_driver *zpool_get_driver(char *type)
static struct zpool_driver *zpool_get_driver(const char *type)
{
struct zpool_driver *driver;
@@ -150,7 +150,7 @@ EXPORT_SYMBOL(zpool_has_pool);
*
* Returns: New zpool on success, NULL on failure.
*/
struct zpool *zpool_create_pool(char *type, char *name, gfp_t gfp,
struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp,
const struct zpool_ops *ops)
{
struct zpool_driver *driver;