Home
last modified time | relevance | path

Searched refs:zhdr (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/mm/
Dz3fold.c240 static inline void z3fold_page_lock(struct z3fold_header *zhdr) in z3fold_page_lock() argument
242 spin_lock(&zhdr->page_lock); in z3fold_page_lock()
246 static inline int z3fold_page_trylock(struct z3fold_header *zhdr) in z3fold_page_trylock() argument
248 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() argument
254 spin_unlock(&zhdr->page_lock); in z3fold_page_unlock()
261 struct z3fold_header *zhdr; in get_z3fold_header() local
271 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 …]
Dzbud.c155 struct zbud_header *zhdr = page_address(page); in init_zbud_page() local
156 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() argument
167 __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 …]
Dzswap.c944 struct zswap_header *zhdr; in zswap_writeback_entry() local
967 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() local
1210 hlen = zpool_evictable(entry->pool->zpool) ? sizeof(zhdr) : 0; in zswap_frontswap_store()
1224 memcpy(buf, &zhdr, hlen); in zswap_frontswap_store()