summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/zpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/zpool.h')
-rw-r--r--kernel/include/linux/zpool.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/kernel/include/linux/zpool.h b/kernel/include/linux/zpool.h
index 56529b34d..2e97b7707 100644
--- a/kernel/include/linux/zpool.h
+++ b/kernel/include/linux/zpool.h
@@ -36,10 +36,12 @@ enum zpool_mapmode {
ZPOOL_MM_DEFAULT = ZPOOL_MM_RW
};
-struct zpool *zpool_create_pool(char *type, char *name,
- gfp_t gfp, struct zpool_ops *ops);
+bool zpool_has_pool(char *type);
-char *zpool_get_type(struct zpool *pool);
+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);
void zpool_destroy_pool(struct zpool *pool);
@@ -81,7 +83,10 @@ struct zpool_driver {
atomic_t refcount;
struct list_head list;
- void *(*create)(char *name, gfp_t gfp, struct zpool_ops *ops);
+ void *(*create)(const char *name,
+ gfp_t gfp,
+ const struct zpool_ops *ops,
+ struct zpool *zpool);
void (*destroy)(void *pool);
int (*malloc)(void *pool, size_t size, gfp_t gfp,
@@ -102,6 +107,4 @@ void zpool_register_driver(struct zpool_driver *driver);
int zpool_unregister_driver(struct zpool_driver *driver);
-int zpool_evict(void *pool, unsigned long handle);
-
#endif