Searched refs:zpool (Results 1 – 10 of 10) sorted by relevance
/Linux-v6.6/mm/ |
D | zpool.c | 21 struct zpool { struct 147 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp) in zpool_create_pool() 150 struct zpool *zpool; in zpool_create_pool() local 166 zpool = kmalloc(sizeof(*zpool), gfp); in zpool_create_pool() 167 if (!zpool) { in zpool_create_pool() 173 zpool->driver = driver; in zpool_create_pool() 174 zpool->pool = driver->create(name, gfp); in zpool_create_pool() 176 if (!zpool->pool) { in zpool_create_pool() 179 kfree(zpool); in zpool_create_pool() 185 return zpool; in zpool_create_pool() [all …]
|
D | zswap.c | 116 module_param_cb(zpool, &zswap_zpool_param_ops, &zswap_zpool_type, 0644); 166 struct zpool *zpools[ZSWAP_NR_ZPOOLS]; 373 static struct zpool *zswap_find_zpool(struct zswap_entry *entry) in zswap_find_zpool() 1062 struct zpool *pool = zswap_find_zpool(entry); in zswap_writeback_entry() 1203 struct zpool *zpool; in zswap_store() local 1316 zpool = zswap_find_zpool(entry); in zswap_store() 1318 if (zpool_malloc_support_movable(zpool)) in zswap_store() 1320 ret = zpool_malloc(zpool, dlen, gfp, &handle); in zswap_store() 1329 buf = zpool_map_handle(zpool, handle, ZPOOL_MM_WO); in zswap_store() 1331 zpool_unmap_handle(zpool, handle); in zswap_store() [all …]
|
D | Makefile | 112 obj-$(CONFIG_ZPOOL) += zpool.o
|
D | Kconfig | 142 command line 'zswap.zpool=' option.
|
/Linux-v6.6/include/linux/ |
D | zpool.h | 15 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 …]
|
/Linux-v6.6/Documentation/admin-guide/mm/ |
D | zswap.rst | 56 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 68 The zbud type zpool allocates exactly 1 page to store 2 compressed pages, which 70 zbud pages). The zsmalloc type zpool has a more complex compressed page 74 of the swap entry, a combination of the swap type and swap offset, to the zpool [all …]
|
/Linux-v6.6/Documentation/translations/zh_CN/mm/ |
D | z3fold.rst | 21 * z3fold本身没有输出任何API,因此打算通过zpool的API来使用
|
/Linux-v6.6/Documentation/mm/ |
D | z3fold.rst | 15 via the zpool API.
|
/Linux-v6.6/Documentation/core-api/ |
D | mm-api.rst | 127 .. kernel-doc:: mm/zpool.c
|
/Linux-v6.6/ |
D | MAINTAINERS | 23881 F: include/linux/zpool.h 23882 F: mm/zpool.c
|