Searched refs:ca (Results 1 – 2 of 2) sorted by relevance
43 static inline struct cpuacct *parent_ca(struct cpuacct *ca) in parent_ca() argument45 return css_ca(ca->css.parent); in parent_ca()58 struct cpuacct *ca; in cpuacct_css_alloc() local63 ca = kzalloc(sizeof(*ca), GFP_KERNEL); in cpuacct_css_alloc()64 if (!ca) in cpuacct_css_alloc()67 ca->cpuusage = alloc_percpu(u64); in cpuacct_css_alloc()68 if (!ca->cpuusage) in cpuacct_css_alloc()71 ca->cpustat = alloc_percpu(struct kernel_cpustat); in cpuacct_css_alloc()72 if (!ca->cpustat) in cpuacct_css_alloc()75 return &ca->css; in cpuacct_css_alloc()[all …]
299 static void chain_init(struct chain_allocator *ca, gfp_t gfp_mask, in chain_init() argument302 ca->chain = NULL; in chain_init()303 ca->used_space = LINKED_PAGE_DATA_SIZE; in chain_init()304 ca->gfp_mask = gfp_mask; in chain_init()305 ca->safe_needed = safe_needed; in chain_init()308 static void *chain_alloc(struct chain_allocator *ca, unsigned int size) in chain_alloc() argument312 if (LINKED_PAGE_DATA_SIZE - ca->used_space < size) { in chain_alloc()315 lp = ca->safe_needed ? __get_safe_page(ca->gfp_mask) : in chain_alloc()316 get_image_page(ca->gfp_mask, PG_ANY); in chain_alloc()320 lp->next = ca->chain; in chain_alloc()[all …]