Lines Matching refs:xas
105 XA_STATE_ORDER(xas, &address_space->i_pages, idx, compound_order(page)); in add_to_swap_cache()
117 xas_lock_irq(&xas); in add_to_swap_cache()
118 xas_create_range(&xas); in add_to_swap_cache()
119 if (xas_error(&xas)) in add_to_swap_cache()
122 VM_BUG_ON_PAGE(xas.xa_index != idx + i, page); in add_to_swap_cache()
123 old = xas_load(&xas); in add_to_swap_cache()
129 xas_store(&xas, page); in add_to_swap_cache()
130 xas_next(&xas); in add_to_swap_cache()
137 xas_unlock_irq(&xas); in add_to_swap_cache()
138 } while (xas_nomem(&xas, gfp)); in add_to_swap_cache()
140 if (!xas_error(&xas)) in add_to_swap_cache()
145 return xas_error(&xas); in add_to_swap_cache()
158 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
165 void *entry = xas_store(&xas, shadow); in __delete_from_swap_cache()
168 xas_next(&xas); in __delete_from_swap_cache()
262 XA_STATE(xas, &address_space->i_pages, curr); in clear_shadow_from_swap_cache()
265 xas_for_each(&xas, old, end) { in clear_shadow_from_swap_cache()
268 xas_store(&xas, NULL); in clear_shadow_from_swap_cache()