zpool 15 include/linux/zpool.h struct zpool; zpool 18 include/linux/zpool.h int (*evict)(struct zpool *pool, unsigned long handle); zpool 42 include/linux/zpool.h struct zpool *zpool_create_pool(const char *type, const char *name, zpool 45 include/linux/zpool.h const char *zpool_get_type(struct zpool *pool); zpool 47 include/linux/zpool.h void zpool_destroy_pool(struct zpool *pool); zpool 49 include/linux/zpool.h bool zpool_malloc_support_movable(struct zpool *pool); zpool 51 include/linux/zpool.h int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp, zpool 54 include/linux/zpool.h void zpool_free(struct zpool *pool, unsigned long handle); zpool 56 include/linux/zpool.h int zpool_shrink(struct zpool *pool, unsigned int pages, zpool 59 include/linux/zpool.h void *zpool_map_handle(struct zpool *pool, unsigned long handle, zpool 62 include/linux/zpool.h void zpool_unmap_handle(struct zpool *pool, unsigned long handle); zpool 64 include/linux/zpool.h u64 zpool_get_total_size(struct zpool *pool); zpool 92 include/linux/zpool.h struct zpool *zpool); zpool 114 include/linux/zpool.h bool zpool_evictable(struct zpool *pool); zpool 162 mm/z3fold.c struct zpool *zpool; zpool 1471 mm/z3fold.c if (pool->zpool && pool->zpool_ops && pool->zpool_ops->evict) zpool 1472 mm/z3fold.c return pool->zpool_ops->evict(pool->zpool, handle); zpool 1483 mm/z3fold.c struct zpool *zpool) zpool 1490 mm/z3fold.c pool->zpool = zpool; zpool 102 mm/zbud.c struct zpool *zpool; zpool 131 mm/zbud.c if (pool->zpool && pool->zpool_ops && pool->zpool_ops->evict) zpool 132 mm/zbud.c return pool->zpool_ops->evict(pool->zpool, handle); zpool 143 mm/zbud.c struct zpool *zpool) zpool 149 mm/zbud.c pool->zpool = zpool; zpool 155 mm/zpool.c struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, zpool 159 mm/zpool.c struct zpool *zpool; zpool 175 mm/zpool.c zpool = kmalloc(sizeof(*zpool), gfp); zpool 176 mm/zpool.c if (!zpool) { zpool 182 mm/zpool.c zpool->driver = driver; zpool 183 mm/zpool.c zpool->pool = driver->create(name, gfp, ops, zpool); zpool 184 mm/zpool.c zpool->ops = ops; zpool 185 mm/zpool.c zpool->evictable = driver->shrink && ops && ops->evict; zpool 187 mm/zpool.c if (!zpool->pool) { zpool 190 mm/zpool.c kfree(zpool); zpool 197 mm/zpool.c list_add(&zpool->list, &pools_head); zpool 200 mm/zpool.c return zpool; zpool 214 mm/zpool.c void zpool_destroy_pool(struct zpool *zpool) zpool 216 mm/zpool.c pr_debug("destroying pool type %s\n", zpool->driver->type); zpool 219 mm/zpool.c list_del(&zpool->list); zpool 221 mm/zpool.c zpool->driver->destroy(zpool->pool); zpool 222 mm/zpool.c zpool_put_driver(zpool->driver); zpool 223 mm/zpool.c kfree(zpool); zpool 236 mm/zpool.c const char *zpool_get_type(struct zpool *zpool) zpool 238 mm/zpool.c return zpool->driver->type; zpool 252 mm/zpool.c bool zpool_malloc_support_movable(struct zpool *zpool) zpool 254 mm/zpool.c return zpool->driver->malloc_support_movable; zpool 273 mm/zpool.c int zpool_malloc(struct zpool *zpool, size_t size, gfp_t gfp, zpool 276 mm/zpool.c return zpool->driver->malloc(zpool->pool, size, gfp, handle); zpool 293 mm/zpool.c void zpool_free(struct zpool *zpool, unsigned long handle) zpool 295 mm/zpool.c zpool->driver->free(zpool->pool, handle); zpool 315 mm/zpool.c int zpool_shrink(struct zpool *zpool, unsigned int pages, zpool 318 mm/zpool.c return zpool->driver->shrink ? zpool 319 mm/zpool.c zpool->driver->shrink(zpool->pool, pages, reclaimed) : -EINVAL; zpool 344 mm/zpool.c void *zpool_map_handle(struct zpool *zpool, unsigned long handle, zpool 347 mm/zpool.c return zpool->driver->map(zpool->pool, handle, mapmode); zpool 360 mm/zpool.c void zpool_unmap_handle(struct zpool *zpool, unsigned long handle) zpool 362 mm/zpool.c zpool->driver->unmap(zpool->pool, handle); zpool 373 mm/zpool.c u64 zpool_get_total_size(struct zpool *zpool) zpool 375 mm/zpool.c return zpool->driver->total_size(zpool->pool); zpool 391 mm/zpool.c bool zpool_evictable(struct zpool *zpool) zpool 393 mm/zpool.c return zpool->evictable; zpool 389 mm/zsmalloc.c struct zpool *zpool) zpool 106 mm/zswap.c module_param_cb(zpool, &zswap_zpool_param_ops, &zswap_zpool_type, 0644); zpool 122 mm/zswap.c struct zpool *zpool; zpool 201 mm/zswap.c zpool_get_type((p)->zpool)) zpool 203 mm/zswap.c static int zswap_writeback_entry(struct zpool *pool, unsigned long handle); zpool 225 mm/zswap.c total += zpool_get_total_size(pool->zpool); zpool 328 mm/zswap.c zpool_free(entry->pool->zpool, entry->handle); zpool 493 mm/zswap.c if (strcmp(zpool_get_type(pool->zpool), type)) zpool 529 mm/zswap.c pool->zpool = zpool_create_pool(type, name, gfp, &zswap_zpool_ops); zpool 530 mm/zswap.c if (!pool->zpool) { zpool 534 mm/zswap.c pr_debug("using %s zpool\n", zpool_get_type(pool->zpool)); zpool 561 mm/zswap.c if (pool->zpool) zpool 562 mm/zswap.c zpool_destroy_pool(pool->zpool); zpool 613 mm/zswap.c zpool_destroy_pool(pool->zpool); zpool 840 mm/zswap.c static int zswap_writeback_entry(struct zpool *pool, unsigned long handle) zpool 954 mm/zswap.c ret = zpool_shrink(pool->zpool, 1, NULL); zpool 1072 mm/zswap.c hlen = zpool_evictable(entry->pool->zpool) ? sizeof(zhdr) : 0; zpool 1074 mm/zswap.c if (zpool_malloc_support_movable(entry->pool->zpool)) zpool 1076 mm/zswap.c ret = zpool_malloc(entry->pool->zpool, hlen + dlen, gfp, &handle); zpool 1085 mm/zswap.c buf = zpool_map_handle(entry->pool->zpool, handle, ZPOOL_MM_RW); zpool 1088 mm/zswap.c zpool_unmap_handle(entry->pool->zpool, handle); zpool 1158 mm/zswap.c src = zpool_map_handle(entry->pool->zpool, entry->handle, ZPOOL_MM_RO); zpool 1159 mm/zswap.c if (zpool_evictable(entry->pool->zpool)) zpool 1166 mm/zswap.c zpool_unmap_handle(entry->pool->zpool, entry->handle); zpool 1327 mm/zswap.c zpool_get_type(pool->zpool));