Lines Matching refs:zswap_entry
201 struct zswap_entry { struct
256 static int zswap_writeback_entry(struct zswap_entry *entry,
296 static struct zswap_entry *zswap_entry_cache_alloc(gfp_t gfp) in zswap_entry_cache_alloc()
298 struct zswap_entry *entry; in zswap_entry_cache_alloc()
307 static void zswap_entry_cache_free(struct zswap_entry *entry) in zswap_entry_cache_free()
315 static struct zswap_entry *zswap_rb_search(struct rb_root *root, pgoff_t offset) in zswap_rb_search()
318 struct zswap_entry *entry; in zswap_rb_search()
322 entry = rb_entry(node, struct zswap_entry, rbnode); in zswap_rb_search()
338 static int zswap_rb_insert(struct rb_root *root, struct zswap_entry *entry, in zswap_rb_insert()
339 struct zswap_entry **dupentry) in zswap_rb_insert()
342 struct zswap_entry *myentry; in zswap_rb_insert()
347 myentry = rb_entry(parent, struct zswap_entry, rbnode); in zswap_rb_insert()
363 static bool zswap_rb_erase(struct rb_root *root, struct zswap_entry *entry) in zswap_rb_erase()
373 static struct zpool *zswap_find_zpool(struct zswap_entry *entry) in zswap_find_zpool()
387 static void zswap_free_entry(struct zswap_entry *entry) in zswap_free_entry()
408 static void zswap_entry_get(struct zswap_entry *entry) in zswap_entry_get()
417 struct zswap_entry *entry) in zswap_entry_put()
429 static struct zswap_entry *zswap_entry_find_get(struct rb_root *root, in zswap_entry_find_get()
432 struct zswap_entry *entry; in zswap_entry_find_get()
626 struct zswap_entry *entry) in zswap_invalidate_entry()
634 struct zswap_entry *entry; in zswap_reclaim_entry()
645 entry = list_last_entry(&pool->lru, struct zswap_entry, lru); in zswap_reclaim_entry()
1055 static int zswap_writeback_entry(struct zswap_entry *entry, in zswap_writeback_entry()
1200 struct zswap_entry *entry, *dupentry; in zswap_store()
1403 struct zswap_entry *entry; in zswap_load()
1488 struct zswap_entry *entry; in zswap_invalidate()
1520 struct zswap_entry *entry, *n; in zswap_swapoff()
1588 zswap_entry_cache = KMEM_CACHE(zswap_entry, 0); in zswap_setup()