Home
last modified time | relevance | path

Searched refs:zpool (Results 1 – 12 of 12) sorted by relevance

/linux/mm/
A Dzpool.c21 struct zpool { struct
150 struct zpool *zpool; in zpool_create_pool() local
166 zpool = kmalloc(sizeof(*zpool), gfp); in zpool_create_pool()
199 void zpool_destroy_pool(struct zpool *zpool) in zpool_destroy_pool() argument
203 zpool->driver->destroy(zpool->pool); in zpool_destroy_pool()
218 const char *zpool_get_type(struct zpool *zpool) in zpool_get_type() argument
277 zpool->driver->free(zpool->pool, handle); in zpool_free()
320 zpool->driver->unmap(zpool->pool, handle); in zpool_unmap_handle()
331 u64 zpool_get_total_pages(struct zpool *zpool) in zpool_get_total_pages() argument
333 return zpool->driver->total_pages(zpool->pool); in zpool_get_total_pages()
[all …]
A Dzswap.c160 struct zpool *zpool; member
242 zpool_get_type((p)->zpool))
274 if (!pool->zpool) { in zswap_pool_create()
311 if (pool->zpool) in zswap_pool_create()
312 zpool_destroy_pool(pool->zpool); in zswap_pool_create()
366 zpool_destroy_pool(pool->zpool); in zswap_pool_destroy()
885 struct zpool *zpool; in zswap_compress() local
923 zpool = entry->pool->zpool; in zswap_compress()
933 zpool_unmap_handle(zpool, handle); in zswap_compress()
952 struct zpool *zpool = entry->pool->zpool; in zswap_decompress() local
[all …]
A DMakefile114 obj-$(CONFIG_ZPOOL) += zpool.o
A DKconfig141 command line 'zswap.zpool=' option.
/linux/include/linux/
A Dzpool.h15 struct zpool;
38 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp);
40 const char *zpool_get_type(struct zpool *pool);
42 void zpool_destroy_pool(struct zpool *pool);
44 bool zpool_malloc_support_movable(struct zpool *pool);
46 int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp,
49 void zpool_free(struct zpool *pool, unsigned long handle);
51 void *zpool_map_handle(struct zpool *pool, unsigned long handle,
54 void zpool_unmap_handle(struct zpool *pool, unsigned long handle);
56 u64 zpool_get_total_pages(struct zpool *pool);
[all …]
/linux/Documentation/admin-guide/mm/
A Dzswap.rst56 Zswap makes use of zpool for the managing the compressed memory pool. Each
57 allocation in zpool is not directly accessible by address. Rather, a handle is
60 pages are freed. The pool is not preallocated. By default, a zpool
62 but it can be overridden at boot time by setting the ``zpool`` attribute,
63 e.g. ``zswap.zpool=zbud``. It can also be changed at runtime using the sysfs
64 ``zpool`` attribute, e.g.::
66 echo zbud > /sys/module/zswap/parameters/zpool
70 zbud pages). The zsmalloc type zpool has a more complex compressed page
102 compressed pages are not modified; they are left in their own zpool. When a
103 request is made for a page in an old zpool, it is uncompressed using its
[all …]
/linux/Documentation/translations/zh_CN/mm/
A Dz3fold.rst21 * z3fold本身没有输出任何API,因此打算通过zpool的API来使用
/linux/Documentation/mm/
A Dz3fold.rst15 via the zpool API.
/linux/Documentation/core-api/
A Dmm-api.rst127 .. kernel-doc:: mm/zpool.c
/linux/Documentation/driver-api/crypto/iaa/
A Diaa-crypto.rst472 # echo zsmalloc > /sys/module/zswap/parameters/zpool
621 echo zsmalloc > /sys/module/zswap/parameters/zpool
/linux/
A DCREDITS3772 D: Creation and maintenance of the zpool API
A DMAINTAINERS25691 F: include/linux/zpool.h
25693 F: mm/zpool.c

Completed in 42 milliseconds