Lines Matching refs:xas
134 XA_STATE_ORDER(xas, &address_space->i_pages, idx, compound_order(page)); in add_to_swap_cache()
148 xas_lock_irq(&xas); in add_to_swap_cache()
149 xas_create_range(&xas); in add_to_swap_cache()
150 if (xas_error(&xas)) in add_to_swap_cache()
153 VM_BUG_ON_PAGE(xas.xa_index != idx + i, page); in add_to_swap_cache()
154 old = xas_load(&xas); in add_to_swap_cache()
161 xas_store(&xas, page); in add_to_swap_cache()
162 xas_next(&xas); in add_to_swap_cache()
169 xas_unlock_irq(&xas); in add_to_swap_cache()
170 } while (xas_nomem(&xas, gfp)); in add_to_swap_cache()
172 if (!xas_error(&xas)) in add_to_swap_cache()
177 return xas_error(&xas); in add_to_swap_cache()
190 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
197 void *entry = xas_store(&xas, shadow); in __delete_from_swap_cache()
200 xas_next(&xas); in __delete_from_swap_cache()
296 XA_STATE(xas, &address_space->i_pages, curr); in clear_shadow_from_swap_cache()
299 xas_for_each(&xas, old, end) { in clear_shadow_from_swap_cache()
302 xas_store(&xas, NULL); in clear_shadow_from_swap_cache()