Searched refs:zpool (Results 1 – 12 of 12) sorted by relevance
/linux-5.19.10/mm/ |
D | zpool.c | 21 struct zpool { struct 151 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, in zpool_create_pool() 155 struct zpool *zpool; in zpool_create_pool() local 171 zpool = kmalloc(sizeof(*zpool), gfp); in zpool_create_pool() 172 if (!zpool) { in zpool_create_pool() 178 zpool->driver = driver; in zpool_create_pool() 179 zpool->pool = driver->create(name, gfp, ops, zpool); in zpool_create_pool() 180 zpool->ops = ops; in zpool_create_pool() 181 zpool->evictable = driver->shrink && ops && ops->evict; in zpool_create_pool() 182 zpool->can_sleep_mapped = driver->sleep_mapped; in zpool_create_pool() [all …]
|
D | zswap.c | 114 module_param_cb(zpool, &zswap_zpool_param_ops, &zswap_zpool_type, 0644); 151 struct zpool *zpool; member 232 zpool_get_type((p)->zpool)) 234 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle); 263 total += zpool_get_total_size(pool->zpool); in zswap_update_total_size() 370 zpool_free(entry->pool->zpool, entry->handle); in zswap_free_entry() 579 if (strcmp(zpool_get_type(pool->zpool), type)) in zswap_pool_find_get() 595 if (zpool_shrink(pool->zpool, 1, NULL)) in shrink_worker() 625 pool->zpool = zpool_create_pool(type, name, gfp, &zswap_zpool_ops); in zswap_pool_create() 626 if (!pool->zpool) { in zswap_pool_create() [all …]
|
D | zbud.c | 114 struct zpool *zpool; member 529 if (pool->zpool && pool->zpool_ops && pool->zpool_ops->evict) in zbud_zpool_evict() 530 return pool->zpool_ops->evict(pool->zpool, handle); in zbud_zpool_evict() 541 struct zpool *zpool) in zbud_zpool_create() argument 547 pool->zpool = zpool; in zbud_zpool_create()
|
D | z3fold.c | 167 struct zpool *zpool; member 1657 if (pool->zpool && pool->zpool_ops && pool->zpool_ops->evict) in z3fold_zpool_evict() 1658 return pool->zpool_ops->evict(pool->zpool, handle); in z3fold_zpool_evict() 1669 struct zpool *zpool) in z3fold_zpool_create() argument 1676 pool->zpool = zpool; in z3fold_zpool_create()
|
D | Makefile | 109 obj-$(CONFIG_ZPOOL) += zpool.o
|
D | zsmalloc.c | 383 struct zpool *zpool) in zs_zpool_create() argument
|
D | Kconfig | 133 command line 'zswap.zpool=' option.
|
/linux-5.19.10/include/linux/ |
D | zpool.h | 15 struct zpool; 18 int (*evict)(struct zpool *pool, unsigned long handle); 42 struct zpool *zpool_create_pool(const char *type, const char *name, 45 const char *zpool_get_type(struct zpool *pool); 47 void zpool_destroy_pool(struct zpool *pool); 49 bool zpool_malloc_support_movable(struct zpool *pool); 51 int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp, 54 void zpool_free(struct zpool *pool, unsigned long handle); 56 int zpool_shrink(struct zpool *pool, unsigned int pages, 59 void *zpool_map_handle(struct zpool *pool, unsigned long handle, [all …]
|
/linux-5.19.10/Documentation/admin-guide/mm/ |
D | zswap.rst | 64 Zswap makes use of zpool for the managing the compressed memory pool. Each 65 allocation in zpool is not directly accessible by address. Rather, a handle is 68 pages are freed. The pool is not preallocated. By default, a zpool 70 but it can be overridden at boot time by setting the ``zpool`` attribute, 71 e.g. ``zswap.zpool=zbud``. It can also be changed at runtime using the sysfs 72 ``zpool`` attribute, e.g.:: 74 echo zbud > /sys/module/zswap/parameters/zpool 76 The zbud type zpool allocates exactly 1 page to store 2 compressed pages, which 78 zbud pages). The zsmalloc type zpool has a more complex compressed page 84 of the swap entry, a combination of the swap type and swap offset, to the zpool [all …]
|
/linux-5.19.10/Documentation/translations/zh_CN/vm/ |
D | z3fold.rst | 21 * z3fold本身没有输出任何API,因此打算通过zpool的API来使用
|
/linux-5.19.10/Documentation/vm/ |
D | z3fold.rst | 17 via the zpool API.
|
/linux-5.19.10/ |
D | MAINTAINERS | 22197 F: include/linux/zpool.h 22198 F: mm/zpool.c
|