Lines Matching refs:xas
413 XA_STATE(xas, &mapping->i_pages, index); in shmem_replace_entry()
418 item = xas_load(&xas); in shmem_replace_entry()
421 xas_store(&xas, replacement); in shmem_replace_entry()
696 XA_STATE_ORDER(xas, &mapping->i_pages, index, compound_order(page)); in shmem_add_to_page_cache()
725 xas_lock_irq(&xas); in shmem_add_to_page_cache()
726 entry = xas_find_conflict(&xas); in shmem_add_to_page_cache()
728 xas_set_err(&xas, -EEXIST); in shmem_add_to_page_cache()
729 xas_create_range(&xas); in shmem_add_to_page_cache()
730 if (xas_error(&xas)) in shmem_add_to_page_cache()
733 xas_store(&xas, page); in shmem_add_to_page_cache()
735 xas_next(&xas); in shmem_add_to_page_cache()
746 xas_unlock_irq(&xas); in shmem_add_to_page_cache()
747 } while (xas_nomem(&xas, gfp)); in shmem_add_to_page_cache()
749 if (xas_error(&xas)) { in shmem_add_to_page_cache()
750 error = xas_error(&xas); in shmem_add_to_page_cache()
807 XA_STATE(xas, &mapping->i_pages, start); in shmem_partial_swap_usage()
812 xas_for_each(&xas, page, end - 1) { in shmem_partial_swap_usage()
813 if (xas_retry(&xas, page)) in shmem_partial_swap_usage()
819 xas_pause(&xas); in shmem_partial_swap_usage()
1170 XA_STATE(xas, &mapping->i_pages, start); in shmem_find_swap_entries()
1179 xas_for_each(&xas, page, ULONG_MAX) { in shmem_find_swap_entries()
1180 if (xas_retry(&xas, page)) in shmem_find_swap_entries()
1193 indices[ret] = xas.xa_index; in shmem_find_swap_entries()
1197 xas_pause(&xas); in shmem_find_swap_entries()