Lines Matching refs:xas
133 XA_STATE_ORDER(xas, &address_space->i_pages, idx, compound_order(page)); in add_to_swap_cache()
147 xas_lock_irq(&xas); in add_to_swap_cache()
148 xas_create_range(&xas); in add_to_swap_cache()
149 if (xas_error(&xas)) in add_to_swap_cache()
152 VM_BUG_ON_PAGE(xas.xa_index != idx + i, page); in add_to_swap_cache()
153 old = xas_load(&xas); in add_to_swap_cache()
160 xas_store(&xas, page); in add_to_swap_cache()
161 xas_next(&xas); in add_to_swap_cache()
168 xas_unlock_irq(&xas); in add_to_swap_cache()
169 } while (xas_nomem(&xas, gfp)); in add_to_swap_cache()
171 if (!xas_error(&xas)) in add_to_swap_cache()
176 return xas_error(&xas); in add_to_swap_cache()
189 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
196 void *entry = xas_store(&xas, shadow); in __delete_from_swap_cache()
199 xas_next(&xas); in __delete_from_swap_cache()
295 XA_STATE(xas, &address_space->i_pages, curr); in clear_shadow_from_swap_cache()
298 xas_for_each(&xas, old, end) { in clear_shadow_from_swap_cache()
301 xas_store(&xas, NULL); in clear_shadow_from_swap_cache()