Lines Matching refs:stack_record

40 	struct stack_record *stack_record;  member
123 dummy_stack.stack_record = __stack_depot_get_stack_record(dummy_handle); in init_page_owner()
124 failure_stack.stack_record = __stack_depot_get_stack_record(failure_handle); in init_page_owner()
125 if (dummy_stack.stack_record) in init_page_owner()
126 refcount_set(&dummy_stack.stack_record->count, 1); in init_page_owner()
127 if (failure_stack.stack_record) in init_page_owner()
128 refcount_set(&failure_stack.stack_record->count, 1); in init_page_owner()
165 static void add_stack_record_to_list(struct stack_record *stack_record, in add_stack_record_to_list() argument
179 stack->stack_record = stack_record; in add_stack_record_to_list()
197 struct stack_record *stack_record = __stack_depot_get_stack_record(handle); in inc_stack_record_count() local
199 if (!stack_record) in inc_stack_record_count()
209 if (refcount_read(&stack_record->count) == REFCOUNT_SATURATED) { in inc_stack_record_count()
212 if (atomic_try_cmpxchg_relaxed(&stack_record->count.refs, &old, 1)) in inc_stack_record_count()
214 add_stack_record_to_list(stack_record, gfp_mask); in inc_stack_record_count()
216 refcount_add(nr_base_pages, &stack_record->count); in inc_stack_record_count()
222 struct stack_record *stack_record = __stack_depot_get_stack_record(handle); in dec_stack_record_count() local
224 if (!stack_record) in dec_stack_record_count()
227 if (refcount_sub_and_test(nr_base_pages, &stack_record->count)) in dec_stack_record_count()
897 struct stack_record *stack_record = stack->stack_record; in stack_print() local
899 if (!stack->stack_record) in stack_print()
902 nr_entries = stack_record->size; in stack_print()
903 entries = stack_record->entries; in stack_print()
904 nr_base_pages = refcount_read(&stack_record->count) - 1; in stack_print()