函数源码 |
Source File:mm\zswap.c |
Create Date:2022-07-27 16:52:55 |
首页 | Copyright©Brick |
247 248 249 250 251 252 253 254 255 256 | static struct zswap_entry *zswap_entry_cache_alloc(gfp_t gfp) { struct zswap_entry *entry; entry = kmem_cache_alloc(zswap_entry_cache, gfp); if (!entry) return NULL; entry->refcount = 1; RB_CLEAR_NODE(&entry->rbnode); return entry; } |