Lines Matching defs:offset
148 * offset - the swap offset for the entry. Index into the red-black tree.
163 pgoff_t offset;
284 static struct zswap_entry *zswap_rb_search(struct rb_root *root, pgoff_t offset)
291 if (entry->offset > offset)
293 else if (entry->offset < offset)
302 * In the case that a entry with the same offset is found, a pointer to
314 if (myentry->offset > entry->offset)
316 else if (myentry->offset < entry->offset)
376 pgoff_t offset)
380 entry = zswap_rb_search(root, offset);
876 pgoff_t offset;
897 offset = swp_offset(swpentry);
901 entry = zswap_entry_find_get(&tree->rbroot, offset);
910 BUG_ON(offset != entry->offset);
966 if (entry == zswap_rb_search(&tree->rbroot, offset))
1019 static int zswap_frontswap_store(unsigned type, pgoff_t offset,
1030 struct zswap_header zhdr = { .swpentry = swp_entry(type, offset) };
1077 entry->offset = offset;
1126 entry->offset = offset;
1163 static int zswap_frontswap_load(unsigned type, pgoff_t offset,
1175 entry = zswap_entry_find_get(&tree->rbroot, offset);
1233 static void zswap_frontswap_invalidate_page(unsigned type, pgoff_t offset)
1240 entry = zswap_rb_search(&tree->rbroot, offset);