Lines Matching full:order
108 * by their order: when kmsan_memblock_free_pages() is called for the first
109 * time with a certain order, it is reserved as a shadow block, for the second
112 * after which held_back[order] can be used again.
117 bool kmsan_memblock_free_pages(struct page *page, unsigned int order) in kmsan_memblock_free_pages() argument
121 if (!held_back[order].shadow) { in kmsan_memblock_free_pages()
122 held_back[order].shadow = page; in kmsan_memblock_free_pages()
125 if (!held_back[order].origin) { in kmsan_memblock_free_pages()
126 held_back[order].origin = page; in kmsan_memblock_free_pages()
129 shadow = held_back[order].shadow; in kmsan_memblock_free_pages()
130 origin = held_back[order].origin; in kmsan_memblock_free_pages()
131 kmsan_setup_meta(page, shadow, origin, order); in kmsan_memblock_free_pages()
133 held_back[order].shadow = NULL; in kmsan_memblock_free_pages()
134 held_back[order].origin = NULL; in kmsan_memblock_free_pages()
142 int order; member
147 .order = MAX_PAGE_ORDER,
177 kmsan_setup_meta(page, shadow, origin, collect.order); in do_collection()
178 __free_pages_core(page, collect.order, MEMINIT_EARLY); in do_collection()
185 .order = collect.order - 1, in collect_split()
190 if (!collect.order) in collect_split()
195 smallstack_push(&tmp, &page[1 << tmp.order]); in collect_split()
207 * For each order=N: in kmsan_memblock_discard()
214 * order=N-1, in kmsan_memblock_discard()
217 collect.order = MAX_PAGE_ORDER; in kmsan_memblock_discard()