Lines Matching refs:page
266 unsigned long page_init(struct Page *page, ul flags) in page_init() argument
268 page->attr |= flags; in page_init()
270 if ((!page->ref_counts) || (page->attr & PAGE_SHARED)) in page_init()
272 ++page->ref_counts; in page_init()
274 if (page->zone) in page_init()
275 ++page->zone->total_pages_link; in page_init()
277 page->anon_vma = NULL; in page_init()
278 spin_init(&(page->op_lock)); in page_init()
399 ul get_page_attr(struct Page *page) in get_page_attr() argument
401 if (page == NULL) in get_page_attr()
407 return page->attr; in get_page_attr()
417 ul set_page_attr(struct Page *page, ul flags) in set_page_attr() argument
419 if (page == NULL) in set_page_attr()
426 page->attr = flags; in set_page_attr()
437 void free_pages(struct Page *page, int number) in free_pages() argument
439 if (page == NULL) in free_pages()
452 for (int i = 0; i < number; ++i, ++page) in free_pages()
454 page_num = page->addr_phys >> PAGE_2M_SHIFT; in free_pages()
458 --page->zone->count_pages_using; in free_pages()
459 ++page->zone->count_pages_free; in free_pages()
460 page->attr = 0; in free_pages()