bool filemap_range_has_page(struct address_space *mapping,
                           loff_t start_byte, loff_t end_byte)
 {
-       struct page *page;
+       struct folio *folio;
        XA_STATE(xas, &mapping->i_pages, start_byte >> PAGE_SHIFT);
        pgoff_t max = end_byte >> PAGE_SHIFT;
 
 
        rcu_read_lock();
        for (;;) {
-               page = xas_find(&xas, max);
-               if (xas_retry(&xas, page))
+               folio = xas_find(&xas, max);
+               if (xas_retry(&xas, folio))
                        continue;
                /* Shadow entries don't count */
-               if (xa_is_value(page))
+               if (xa_is_value(folio))
                        continue;
                /*
                 * We don't need to try to pin this page; we're about to
        }
        rcu_read_unlock();
 
-       return page != NULL;
+       return folio != NULL;
 }
 EXPORT_SYMBOL(filemap_range_has_page);