Lines Matching refs:xas

403 	XA_STATE(xas, &mapping->i_pages, index);  in shmem_replace_entry()
408 item = xas_load(&xas); in shmem_replace_entry()
411 xas_store(&xas, replacement); in shmem_replace_entry()
694 XA_STATE_ORDER(xas, &mapping->i_pages, index, folio_order(folio)); in shmem_add_to_page_cache()
720 xas_lock_irq(&xas); in shmem_add_to_page_cache()
721 if (expected != xas_find_conflict(&xas)) { in shmem_add_to_page_cache()
722 xas_set_err(&xas, -EEXIST); in shmem_add_to_page_cache()
725 if (expected && xas_find_conflict(&xas)) { in shmem_add_to_page_cache()
726 xas_set_err(&xas, -EEXIST); in shmem_add_to_page_cache()
729 xas_store(&xas, folio); in shmem_add_to_page_cache()
730 if (xas_error(&xas)) in shmem_add_to_page_cache()
740 xas_unlock_irq(&xas); in shmem_add_to_page_cache()
741 } while (xas_nomem(&xas, gfp)); in shmem_add_to_page_cache()
743 if (xas_error(&xas)) { in shmem_add_to_page_cache()
744 error = xas_error(&xas); in shmem_add_to_page_cache()
800 XA_STATE(xas, &mapping->i_pages, start); in shmem_partial_swap_usage()
805 xas_for_each(&xas, page, end - 1) { in shmem_partial_swap_usage()
806 if (xas_retry(&xas, page)) in shmem_partial_swap_usage()
812 xas_pause(&xas); in shmem_partial_swap_usage()
1183 XA_STATE(xas, &mapping->i_pages, start); in shmem_find_swap_entries()
1188 xas_for_each(&xas, folio, ULONG_MAX) { in shmem_find_swap_entries()
1189 if (xas_retry(&xas, folio)) in shmem_find_swap_entries()
1203 indices[folio_batch_count(fbatch)] = xas.xa_index; in shmem_find_swap_entries()
1208 xas_pause(&xas); in shmem_find_swap_entries()
1214 return xas.xa_index; in shmem_find_swap_entries()