Lines Matching refs:i_pages
403 XA_STATE(xas, &mapping->i_pages, index); in shmem_replace_entry()
425 return xa_load(&mapping->i_pages, index) == swp_to_radix_entry(swap); in shmem_confirm_swap()
694 XA_STATE_ORDER(xas, &mapping->i_pages, index, folio_order(folio)); in shmem_add_to_page_cache()
764 xa_lock_irq(&mapping->i_pages); in shmem_delete_from_page_cache()
770 xa_unlock_irq(&mapping->i_pages); in shmem_delete_from_page_cache()
783 old = xa_cmpxchg_irq(&mapping->i_pages, index, radswap, NULL, 0); in shmem_free_swap()
800 XA_STATE(xas, &mapping->i_pages, start); in shmem_partial_swap_usage()
1183 XA_STATE(xas, &mapping->i_pages, start); in shmem_find_swap_entries()
1551 if (xa_find(&mapping->i_pages, &hindex, hindex + HPAGE_PMD_NR - 1, in shmem_alloc_hugefolio()
1662 xa_lock_irq(&swap_mapping->i_pages); in shmem_replace_folio()
1671 xa_unlock_irq(&swap_mapping->i_pages); in shmem_replace_folio()
1702 old = xa_cmpxchg_irq(&mapping->i_pages, index, in shmem_set_folio_swapin_error()