Lines Matching refs:compound
1106 * @compound: charge the page as compound or small page
1114 struct vm_area_struct *vma, unsigned long address, bool compound)
1116 do_page_add_anon_rmap(page, vma, address, compound ? RMAP_COMPOUND : 0);
1127 bool compound = flags & RMAP_COMPOUND;
1135 if (compound) {
1146 int nr = compound ? thp_nr_pages(page) : 1;
1153 if (compound)
1176 * @compound: charge the page as compound or small page
1183 struct vm_area_struct *vma, unsigned long address, bool compound)
1185 int nr = compound ? thp_nr_pages(page) : 1;
1189 if (compound) {
1210 * @compound: charge the page as compound or small page
1214 void page_add_file_rmap(struct page *page, bool compound)
1218 VM_BUG_ON_PAGE(compound && !PageTransHuge(page), page);
1220 if (compound && PageTransHuge(page)) {
1247 static void page_remove_file_rmap(struct page *page, bool compound)
1251 VM_BUG_ON_PAGE(compound && !PageHead(page), page);
1261 if (compound && PageTransHuge(page)) {
1316 * page of the compound page is unmapped, but at least one
1335 * @compound: uncharge the page as compound or small page
1339 void page_remove_rmap(struct page *page, bool compound)
1344 page_remove_file_rmap(page, compound);
1348 if (compound) {