diff options
Diffstat (limited to 'mm/zpool.c')
-rw-r--r-- | mm/zpool.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/zpool.c b/mm/zpool.c index 739cdf0d183a..bacdab6e47de 100644 --- a/mm/zpool.c +++ b/mm/zpool.c | |||
@@ -129,6 +129,7 @@ static void zpool_put_driver(struct zpool_driver *driver) | |||
129 | /** | 129 | /** |
130 | * zpool_create_pool() - Create a new zpool | 130 | * zpool_create_pool() - Create a new zpool |
131 | * @type The type of the zpool to create (e.g. zbud, zsmalloc) | 131 | * @type The type of the zpool to create (e.g. zbud, zsmalloc) |
132 | * @name The name of the zpool (e.g. zram0, zswap) | ||
132 | * @gfp The GFP flags to use when allocating the pool. | 133 | * @gfp The GFP flags to use when allocating the pool. |
133 | * @ops The optional ops callback. | 134 | * @ops The optional ops callback. |
134 | * | 135 | * |
@@ -140,7 +141,8 @@ static void zpool_put_driver(struct zpool_driver *driver) | |||
140 | * | 141 | * |
141 | * Returns: New zpool on success, NULL on failure. | 142 | * Returns: New zpool on success, NULL on failure. |
142 | */ | 143 | */ |
143 | struct zpool *zpool_create_pool(char *type, gfp_t gfp, struct zpool_ops *ops) | 144 | struct zpool *zpool_create_pool(char *type, char *name, gfp_t gfp, |
145 | struct zpool_ops *ops) | ||
144 | { | 146 | { |
145 | struct zpool_driver *driver; | 147 | struct zpool_driver *driver; |
146 | struct zpool *zpool; | 148 | struct zpool *zpool; |
@@ -168,7 +170,7 @@ struct zpool *zpool_create_pool(char *type, gfp_t gfp, struct zpool_ops *ops) | |||
168 | 170 | ||
169 | zpool->type = driver->type; | 171 | zpool->type = driver->type; |
170 | zpool->driver = driver; | 172 | zpool->driver = driver; |
171 | zpool->pool = driver->create(gfp, ops); | 173 | zpool->pool = driver->create(name, gfp, ops); |
172 | zpool->ops = ops; | 174 | zpool->ops = ops; |
173 | 175 | ||
174 | if (!zpool->pool) { | 176 | if (!zpool->pool) { |