Lines Matching refs:xas
1643 XA_STATE_ORDER(xas, &mapping->i_pages, start, HPAGE_PMD_ORDER); in collapse_file()
1667 xas_lock_irq(&xas); in collapse_file()
1668 xas_create_range(&xas); in collapse_file()
1669 if (!xas_error(&xas)) in collapse_file()
1671 xas_unlock_irq(&xas); in collapse_file()
1672 if (!xas_nomem(&xas, GFP_KERNEL)) { in collapse_file()
1690 xas_set(&xas, start); in collapse_file()
1692 struct page *page = xas_next(&xas); in collapse_file()
1694 VM_BUG_ON(index != xas.xa_index); in collapse_file()
1703 if (!xas_next_entry(&xas, end - 1)) { in collapse_file()
1707 xas_set(&xas, index); in collapse_file()
1713 xas_store(&xas, new_page); in collapse_file()
1719 xas_unlock_irq(&xas); in collapse_file()
1728 xas_unlock_irq(&xas); in collapse_file()
1735 xas_unlock_irq(&xas); in collapse_file()
1760 xas_unlock_irq(&xas); in collapse_file()
1765 xas_unlock_irq(&xas); in collapse_file()
1770 xas_unlock_irq(&xas); in collapse_file()
1829 xas_lock_irq(&xas); in collapse_file()
1830 xas_set(&xas, index); in collapse_file()
1832 VM_BUG_ON_PAGE(page != xas_load(&xas), page); in collapse_file()
1843 xas_unlock_irq(&xas); in collapse_file()
1855 xas_store(&xas, new_page); in collapse_file()
1877 xas_unlock_irq(&xas); in collapse_file()
1926 xas_lock_irq(&xas); in collapse_file()
1932 xas_set(&xas, start); in collapse_file()
1933 xas_for_each(&xas, page, end - 1) { in collapse_file()
1936 if (!page || xas.xa_index < page->index) { in collapse_file()
1941 xas_store(&xas, NULL); in collapse_file()
1945 VM_BUG_ON_PAGE(page->index != xas.xa_index, page); in collapse_file()
1950 xas_store(&xas, page); in collapse_file()
1951 xas_pause(&xas); in collapse_file()
1952 xas_unlock_irq(&xas); in collapse_file()
1955 xas_lock_irq(&xas); in collapse_file()
1958 xas_unlock_irq(&xas); in collapse_file()
1976 XA_STATE(xas, &mapping->i_pages, start); in khugepaged_scan_file()
1985 xas_for_each(&xas, page, start + HPAGE_PMD_NR - 1) { in khugepaged_scan_file()
1986 if (xas_retry(&xas, page)) in khugepaged_scan_file()
2029 xas_pause(&xas); in khugepaged_scan_file()