Home
last modified time | relevance | path

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

/openbmc/linux/mm/
H 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_size(struct zpool *zpool) in zpool_get_total_size() argument
333 return zpool->driver->total_size(zpool->pool); in zpool_get_total_size()
[all …]
H A Dzswap.c166 struct zpool *zpools[ZSWAP_NR_ZPOOLS];
1205 struct zpool *zpool; in zswap_store() local
1321 zpool = zswap_find_zpool(entry); in zswap_store()
1323 if (zpool_malloc_support_movable(zpool)) in zswap_store()
1336 zpool_unmap_handle(zpool, handle); in zswap_store()
1407 struct zpool *zpool; in zswap_load() local
1430 zpool = zswap_find_zpool(entry); in zswap_load()
1431 if (!zpool_can_sleep_mapped(zpool)) { in zswap_load()
1443 if (!zpool_can_sleep_mapped(zpool)) { in zswap_load()
1446 zpool_unmap_handle(zpool, entry->handle); in zswap_load()
[all …]
H A DMakefile112 obj-$(CONFIG_ZPOOL) += zpool.o
H A DKconfig142 command line 'zswap.zpool=' option.
/openbmc/linux/include/linux/
H 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_size(struct zpool *pool);
[all …]
/openbmc/linux/Documentation/admin-guide/mm/
H 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 …]
/openbmc/linux/Documentation/translations/zh_CN/mm/
H A Dz3fold.rst21 * z3fold本身没有输出任何API,因此打算通过zpool的API来使用
/openbmc/linux/Documentation/mm/
H A Dz3fold.rst15 via the zpool API.
/openbmc/linux/Documentation/core-api/
H A Dmm-api.rst127 .. kernel-doc:: mm/zpool.c