Searched refs:zhdr (Results 1 – 3 of 3) sorted by relevance
240 static inline void z3fold_page_lock(struct z3fold_header *zhdr) in z3fold_page_lock() argument242 spin_lock(&zhdr->page_lock); in z3fold_page_lock()246 static inline int z3fold_page_trylock(struct z3fold_header *zhdr) in z3fold_page_trylock() argument248 return spin_trylock(&zhdr->page_lock); in z3fold_page_trylock()252 static inline void z3fold_page_unlock(struct z3fold_header *zhdr) in z3fold_page_unlock() argument254 spin_unlock(&zhdr->page_lock); in z3fold_page_unlock()261 struct z3fold_header *zhdr; in get_z3fold_header() local271 zhdr = (struct z3fold_header *)(addr & PAGE_MASK); in get_z3fold_header()272 locked = z3fold_page_trylock(zhdr); in get_z3fold_header()275 struct page *page = virt_to_page(zhdr); in get_z3fold_header()[all …]
155 struct zbud_header *zhdr = page_address(page); in init_zbud_page() local156 zhdr->first_chunks = 0; in init_zbud_page()157 zhdr->last_chunks = 0; in init_zbud_page()158 INIT_LIST_HEAD(&zhdr->buddy); in init_zbud_page()159 INIT_LIST_HEAD(&zhdr->lru); in init_zbud_page()160 zhdr->under_reclaim = false; in init_zbud_page()161 return zhdr; in init_zbud_page()165 static void free_zbud_page(struct zbud_header *zhdr) in free_zbud_page() argument167 __free_page(virt_to_page(zhdr)); in free_zbud_page()174 static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) in encode_handle() argument[all …]
944 struct zswap_header *zhdr; in zswap_writeback_entry() local967 zhdr = zpool_map_handle(pool, handle, ZPOOL_MM_RO); in zswap_writeback_entry()968 swpentry = zhdr->swpentry; /* here */ in zswap_writeback_entry()985 src = (u8 *)zhdr + sizeof(struct zswap_header); in zswap_writeback_entry()1111 struct zswap_header zhdr = { .swpentry = swp_entry(type, offset) }; in zswap_frontswap_store() local1210 hlen = zpool_evictable(entry->pool->zpool) ? sizeof(zhdr) : 0; in zswap_frontswap_store()1224 memcpy(buf, &zhdr, hlen); in zswap_frontswap_store()