Lines Matching refs:zswap_entry
161 struct zswap_entry { struct
256 zswap_entry_cache = KMEM_CACHE(zswap_entry, 0); in zswap_entry_cache_create()
265 static struct zswap_entry *zswap_entry_cache_alloc(gfp_t gfp) in zswap_entry_cache_alloc()
267 struct zswap_entry *entry; in zswap_entry_cache_alloc()
276 static void zswap_entry_cache_free(struct zswap_entry *entry) in zswap_entry_cache_free()
284 static struct zswap_entry *zswap_rb_search(struct rb_root *root, pgoff_t offset) in zswap_rb_search()
287 struct zswap_entry *entry; in zswap_rb_search()
290 entry = rb_entry(node, struct zswap_entry, rbnode); in zswap_rb_search()
305 static int zswap_rb_insert(struct rb_root *root, struct zswap_entry *entry, in zswap_rb_insert()
306 struct zswap_entry **dupentry) in zswap_rb_insert()
309 struct zswap_entry *myentry; in zswap_rb_insert()
313 myentry = rb_entry(parent, struct zswap_entry, rbnode); in zswap_rb_insert()
328 static void zswap_rb_erase(struct rb_root *root, struct zswap_entry *entry) in zswap_rb_erase()
340 static void zswap_free_entry(struct zswap_entry *entry) in zswap_free_entry()
354 static void zswap_entry_get(struct zswap_entry *entry) in zswap_entry_get()
363 struct zswap_entry *entry) in zswap_entry_put()
375 static struct zswap_entry *zswap_entry_find_get(struct rb_root *root, in zswap_entry_find_get()
378 struct zswap_entry *entry; in zswap_entry_find_get()
877 struct zswap_entry *entry; in zswap_writeback_entry()
1006 struct zswap_entry *entry, *dupentry; in zswap_frontswap_store()
1150 struct zswap_entry *entry; in zswap_frontswap_load()
1198 struct zswap_entry *entry; in zswap_frontswap_invalidate_page()
1222 struct zswap_entry *entry, *n; in zswap_frontswap_invalidate_area()