• Home
  • Raw
  • Download

Lines Matching refs:first_page

776 		return page->first_page;  in get_first_page()
881 static void free_zspage(struct page *first_page) in free_zspage() argument
885 BUG_ON(!is_first_page(first_page)); in free_zspage()
886 BUG_ON(first_page->inuse); in free_zspage()
888 head_extra = (struct page *)page_private(first_page); in free_zspage()
890 reset_page(first_page); in free_zspage()
891 __free_page(first_page); in free_zspage()
907 static void init_zspage(struct page *first_page, struct size_class *class) in init_zspage() argument
910 struct page *page = first_page; in init_zspage()
912 BUG_ON(!is_first_page(first_page)); in init_zspage()
925 if (page != first_page) in init_zspage()
955 struct page *first_page = NULL, *uninitialized_var(prev_page); in alloc_zspage() local
980 first_page = page; in alloc_zspage()
981 first_page->inuse = 0; in alloc_zspage()
984 set_page_private(first_page, (unsigned long)page); in alloc_zspage()
986 page->first_page = first_page; in alloc_zspage()
994 init_zspage(first_page, class); in alloc_zspage()
996 first_page->freelist = location_to_obj(first_page, 0); in alloc_zspage()
998 first_page->objects = class->pages_per_zspage * PAGE_SIZE / class->size; in alloc_zspage()
1003 if (unlikely(error) && first_page) { in alloc_zspage()
1004 free_zspage(first_page); in alloc_zspage()
1005 first_page = NULL; in alloc_zspage()
1008 return first_page; in alloc_zspage()
1345 static unsigned long obj_malloc(struct page *first_page, in obj_malloc() argument
1356 obj = (unsigned long)first_page->freelist; in obj_malloc()
1362 first_page->freelist = link->next; in obj_malloc()
1368 set_page_private(first_page, handle); in obj_malloc()
1370 first_page->inuse++; in obj_malloc()
1390 struct page *first_page; in zs_malloc() local
1404 first_page = find_get_zspage(class); in zs_malloc()
1406 if (!first_page) { in zs_malloc()
1408 first_page = alloc_zspage(class, pool->flags); in zs_malloc()
1409 if (unlikely(!first_page)) { in zs_malloc()
1414 set_zspage_mapping(first_page, class->index, ZS_EMPTY); in zs_malloc()
1423 obj = obj_malloc(first_page, class, handle); in zs_malloc()
1425 fix_fullness_group(class, first_page); in zs_malloc()
1437 struct page *first_page, *f_page; in obj_free() local
1447 first_page = get_first_page(f_page); in obj_free()
1449 get_zspage_mapping(first_page, &class_idx, &fullness); in obj_free()
1456 link->next = first_page->freelist; in obj_free()
1458 set_page_private(first_page, 0); in obj_free()
1460 first_page->freelist = (void *)obj; in obj_free()
1461 first_page->inuse--; in obj_free()
1467 struct page *first_page, *f_page; in zs_free() local
1479 first_page = get_first_page(f_page); in zs_free()
1481 get_zspage_mapping(first_page, &class_idx, &fullness); in zs_free()
1486 fullness = fix_fullness_group(class, first_page); in zs_free()
1492 free_zspage(first_page); in zs_free()
1675 struct page *first_page) in putback_zspage() argument
1679 BUG_ON(!is_first_page(first_page)); in putback_zspage()
1681 fullness = get_fullness_group(first_page); in putback_zspage()
1682 insert_zspage(first_page, class, fullness); in putback_zspage()
1683 set_zspage_mapping(first_page, class->index, fullness); in putback_zspage()
1691 free_zspage(first_page); in putback_zspage()