• Home
  • Raw
  • Download

Lines Matching refs:count

1262 static void free_pcppages_bulk(struct zone *zone, int count,  in free_pcppages_bulk()  argument
1276 count = min(pcp->count, count); in free_pcppages_bulk()
1277 while (count) { in free_pcppages_bulk()
1296 batch_free = count; in free_pcppages_bulk()
1302 pcp->count--; in free_pcppages_bulk()
1320 } while (--count && --batch_free && !list_empty(list)); in free_pcppages_bulk()
2776 unsigned long count, struct list_head *list, in rmqueue_bulk() argument
2782 for (i = 0; i < count; ++i) { in rmqueue_bulk()
2842 pcp->count += rmqueue_bulk(zone, order, in get_populated_pcp_list()
2868 to_drain = min(pcp->count, batch); in drain_zone_pages()
2892 if (pcp->count) in drain_pages_zone()
2893 free_pcppages_bulk(zone, pcp->count, pcp); in drain_pages_zone()
2995 if (pcp->pcp.count) in drain_all_pages()
3000 if (pcp->pcp.count) { in drain_all_pages()
3119 pcp->count++; in free_unref_page_commit()
3120 if (pcp->count >= pcp->high) { in free_unref_page_commit()
3308 pcp->count--; in __rmqueue_pcplist()
5007 void __page_frag_cache_drain(struct page *page, unsigned int count) in __page_frag_cache_drain() argument
5011 if (page_ref_sub_and_test(page, count)) in __page_frag_cache_drain()
5416 free_pcp += per_cpu_ptr(zone->pageset, cpu)->pcp.count; in show_free_areas()
5502 free_pcp += per_cpu_ptr(zone->pageset, cpu)->pcp.count; in show_free_areas()
5551 K(this_cpu_read(zone->pageset->pcp.count)), in show_free_areas()
7666 void adjust_managed_page_count(struct page *page, long count) in adjust_managed_page_count() argument
7668 atomic_long_add(count, &page_zone(page)->managed_pages); in adjust_managed_page_count()
7669 totalram_pages_add(count); in adjust_managed_page_count()
7672 totalhigh_pages_add(count); in adjust_managed_page_count()
8383 bool has_unmovable_pages(struct zone *zone, struct page *page, int count, in has_unmovable_pages() argument
8485 if (found > count) in has_unmovable_pages()
8715 unsigned int count = 0; in free_contig_range() local
8720 count += page_count(page) != 1; in free_contig_range()
8723 WARN(count != 0, "%d pages are still in use!\n", count); in free_contig_range()