Lines Matching refs:zswap_entry

179 struct zswap_entry {  struct
210 zswap_entry_cache = KMEM_CACHE(zswap_entry, 0); in zswap_entry_cache_create()
219 static struct zswap_entry *zswap_entry_cache_alloc(gfp_t gfp) in zswap_entry_cache_alloc()
221 struct zswap_entry *entry; in zswap_entry_cache_alloc()
230 static void zswap_entry_cache_free(struct zswap_entry *entry) in zswap_entry_cache_free()
238 static struct zswap_entry *zswap_rb_search(struct rb_root *root, pgoff_t offset) in zswap_rb_search()
241 struct zswap_entry *entry; in zswap_rb_search()
244 entry = rb_entry(node, struct zswap_entry, rbnode); in zswap_rb_search()
259 static int zswap_rb_insert(struct rb_root *root, struct zswap_entry *entry, in zswap_rb_insert()
260 struct zswap_entry **dupentry) in zswap_rb_insert()
263 struct zswap_entry *myentry; in zswap_rb_insert()
267 myentry = rb_entry(parent, struct zswap_entry, rbnode); in zswap_rb_insert()
282 static void zswap_rb_erase(struct rb_root *root, struct zswap_entry *entry) in zswap_rb_erase()
294 static void zswap_free_entry(struct zswap_entry *entry) in zswap_free_entry()
303 static void zswap_entry_get(struct zswap_entry *entry) in zswap_entry_get()
312 struct zswap_entry *entry) in zswap_entry_put()
324 static struct zswap_entry *zswap_entry_find_get(struct rb_root *root, in zswap_entry_find_get()
327 struct zswap_entry *entry = NULL; in zswap_entry_find_get()
538 struct zswap_entry *entry; in zswap_writeback_entry()
643 struct zswap_entry *entry, *dupentry; in zswap_frontswap_store()
742 struct zswap_entry *entry; in zswap_frontswap_load()
779 struct zswap_entry *entry; in zswap_frontswap_invalidate_page()
803 struct zswap_entry *entry, *n; in zswap_frontswap_invalidate_area()