Lines Matching refs:xas
91 XA_STATE_ORDER(xas, &address_space->i_pages, idx, folio_order(folio)); in add_to_swap_cache()
95 xas_set_update(&xas, workingset_update_node); in add_to_swap_cache()
106 xas_lock_irq(&xas); in add_to_swap_cache()
107 xas_create_range(&xas); in add_to_swap_cache()
108 if (xas_error(&xas)) in add_to_swap_cache()
111 VM_BUG_ON_FOLIO(xas.xa_index != idx + i, folio); in add_to_swap_cache()
112 old = xas_load(&xas); in add_to_swap_cache()
117 xas_store(&xas, folio); in add_to_swap_cache()
118 xas_next(&xas); in add_to_swap_cache()
124 xas_unlock_irq(&xas); in add_to_swap_cache()
125 } while (xas_nomem(&xas, gfp)); in add_to_swap_cache()
127 if (!xas_error(&xas)) in add_to_swap_cache()
132 return xas_error(&xas); in add_to_swap_cache()
146 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
148 xas_set_update(&xas, workingset_update_node); in __delete_from_swap_cache()
155 void *entry = xas_store(&xas, shadow); in __delete_from_swap_cache()
157 xas_next(&xas); in __delete_from_swap_cache()
255 XA_STATE(xas, &address_space->i_pages, curr); in clear_shadow_from_swap_cache()
257 xas_set_update(&xas, workingset_update_node); in clear_shadow_from_swap_cache()
260 xas_for_each(&xas, old, end) { in clear_shadow_from_swap_cache()
263 xas_store(&xas, NULL); in clear_shadow_from_swap_cache()