Lines Matching refs:xas
119 XA_STATE_ORDER(xas, &address_space->i_pages, idx, compound_order(page)); in add_to_swap_cache()
130 xas_lock_irq(&xas); in add_to_swap_cache()
131 xas_create_range(&xas); in add_to_swap_cache()
132 if (xas_error(&xas)) in add_to_swap_cache()
135 VM_BUG_ON_PAGE(xas.xa_index != idx + i, page); in add_to_swap_cache()
137 xas_store(&xas, page); in add_to_swap_cache()
138 xas_next(&xas); in add_to_swap_cache()
144 xas_unlock_irq(&xas); in add_to_swap_cache()
145 } while (xas_nomem(&xas, gfp)); in add_to_swap_cache()
147 if (!xas_error(&xas)) in add_to_swap_cache()
152 return xas_error(&xas); in add_to_swap_cache()
164 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
171 void *entry = xas_store(&xas, NULL); in __delete_from_swap_cache()
174 xas_next(&xas); in __delete_from_swap_cache()