static bool is_zone_device_section(struct mem_section *ms) { struct page *page; page = sparse_decode_mem_map(ms->section_mem_map, __section_nr(ms)); return is_zone_device_page(page); }
void __put_page(struct page *page) { if (is_zone_device_page(page)) { put_dev_pagemap(page->pgmap); /* * The page belongs to the device that created pgmap. Do * not return it to page allocator. */ return; } if (unlikely(PageCompound(page))) __put_compound_page(page); else __put_single_page(page); }