Lines Matching refs:folio
669 bool folio_mapped(struct folio *folio) in folio_mapped() argument
673 if (!folio_test_large(folio)) in folio_mapped()
674 return atomic_read(&folio->_mapcount) >= 0; in folio_mapped()
675 if (atomic_read(folio_mapcount_ptr(folio)) >= 0) in folio_mapped()
677 if (folio_test_hugetlb(folio)) in folio_mapped()
680 nr = folio_nr_pages(folio); in folio_mapped()
682 if (atomic_read(&folio_page(folio, i)->_mapcount) >= 0) in folio_mapped()
691 struct folio *folio = page_folio(page); in page_anon_vma() local
692 unsigned long mapping = (unsigned long)folio->mapping; in page_anon_vma()
711 struct address_space *folio_mapping(struct folio *folio) in folio_mapping() argument
716 if (unlikely(folio_test_slab(folio))) in folio_mapping()
719 if (unlikely(folio_test_swapcache(folio))) in folio_mapping()
720 return swap_address_space(folio_swap_entry(folio)); in folio_mapping()
722 mapping = folio->mapping; in folio_mapping()
760 void folio_copy(struct folio *dst, struct folio *src) in folio_copy()
1094 void flush_dcache_folio(struct folio *folio) in flush_dcache_folio() argument
1096 long i, nr = folio_nr_pages(folio); in flush_dcache_folio()
1099 flush_dcache_page(folio_page(folio, i)); in flush_dcache_folio()