Lines Matching refs:stack
147 static void smallstack_push(struct smallstack *stack, struct page *pages)
149 KMSAN_WARN_ON(stack->index == MAX_BLOCKS);
150 stack->items[stack->index] = pages;
151 stack->index++;
155 static struct page *smallstack_pop(struct smallstack *stack)
159 KMSAN_WARN_ON(stack->index == 0);
160 stack->index--;
161 ret = stack->items[stack->index];
162 stack->items[stack->index] = NULL;