• Home
  • Raw
  • Download

Lines Matching refs:zpool

20 struct zpool {  struct
153 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, in zpool_create_pool()
157 struct zpool *zpool; in zpool_create_pool() local
173 zpool = kmalloc(sizeof(*zpool), gfp); in zpool_create_pool()
174 if (!zpool) { in zpool_create_pool()
180 zpool->driver = driver; in zpool_create_pool()
181 zpool->pool = driver->create(name, gfp, ops, zpool); in zpool_create_pool()
182 zpool->ops = ops; in zpool_create_pool()
184 if (!zpool->pool) { in zpool_create_pool()
187 kfree(zpool); in zpool_create_pool()
194 list_add(&zpool->list, &pools_head); in zpool_create_pool()
197 return zpool; in zpool_create_pool()
211 void zpool_destroy_pool(struct zpool *zpool) in zpool_destroy_pool() argument
213 pr_debug("destroying pool type %s\n", zpool->driver->type); in zpool_destroy_pool()
216 list_del(&zpool->list); in zpool_destroy_pool()
218 zpool->driver->destroy(zpool->pool); in zpool_destroy_pool()
219 zpool_put_driver(zpool->driver); in zpool_destroy_pool()
220 kfree(zpool); in zpool_destroy_pool()
233 const char *zpool_get_type(struct zpool *zpool) in zpool_get_type() argument
235 return zpool->driver->type; in zpool_get_type()
254 int zpool_malloc(struct zpool *zpool, size_t size, gfp_t gfp, in zpool_malloc() argument
257 return zpool->driver->malloc(zpool->pool, size, gfp, handle); in zpool_malloc()
274 void zpool_free(struct zpool *zpool, unsigned long handle) in zpool_free() argument
276 zpool->driver->free(zpool->pool, handle); in zpool_free()
296 int zpool_shrink(struct zpool *zpool, unsigned int pages, in zpool_shrink() argument
299 return zpool->driver->shrink(zpool->pool, pages, reclaimed); in zpool_shrink()
324 void *zpool_map_handle(struct zpool *zpool, unsigned long handle, in zpool_map_handle() argument
327 return zpool->driver->map(zpool->pool, handle, mapmode); in zpool_map_handle()
340 void zpool_unmap_handle(struct zpool *zpool, unsigned long handle) in zpool_unmap_handle() argument
342 zpool->driver->unmap(zpool->pool, handle); in zpool_unmap_handle()
353 u64 zpool_get_total_size(struct zpool *zpool) in zpool_get_total_size() argument
355 return zpool->driver->total_size(zpool->pool); in zpool_get_total_size()