Lines Matching refs:nodeid

270 #define MAKE_LIST(cachep, listp, slab, nodeid)				\  argument
273 list_splice(&get_node(cachep, nodeid)->slab, listp); \
276 #define MAKE_ALL_LISTS(cachep, ptr, nodeid) \ argument
278 MAKE_LIST((cachep), (&(ptr)->slabs_full), slabs_full, nodeid); \
279 MAKE_LIST((cachep), (&(ptr)->slabs_partial), slabs_partial, nodeid); \
280 MAKE_LIST((cachep), (&(ptr)->slabs_free), slabs_free, nodeid); \
856 gfp_t flags, int nodeid) in ____cache_alloc_node() argument
1360 int nodeid) in init_list() argument
1364 ptr = kmalloc_node(sizeof(struct kmem_cache_node), GFP_NOWAIT, nodeid); in init_list()
1373 MAKE_ALL_LISTS(cachep, ptr, nodeid); in init_list()
1374 cachep->node[nodeid] = ptr; in init_list()
1530 slab_out_of_memory(struct kmem_cache *cachep, gfp_t gfpflags, int nodeid) in slab_out_of_memory() argument
1545 nodeid, gfpflags); in slab_out_of_memory()
1587 int nodeid) in kmem_getpages() argument
1596 page = __alloc_pages_node(nodeid, flags | __GFP_NOTRACK, cachep->gfporder); in kmem_getpages()
1598 slab_out_of_memory(cachep, flags, nodeid); in kmem_getpages()
1623 kmemcheck_alloc_shadow(page, cachep->gfporder, flags, nodeid); in kmem_getpages()
2452 gfp_t local_flags, int nodeid) in alloc_slabmgmt() argument
2460 local_flags, nodeid); in alloc_slabmgmt()
2541 int nodeid) in slab_get_obj() argument
2548 WARN_ON(page_to_nid(virt_to_page(objp)) != nodeid); in slab_get_obj()
2555 void *objp, int nodeid) in slab_put_obj() argument
2562 WARN_ON(page_to_nid(virt_to_page(objp)) != nodeid); in slab_put_obj()
2594 gfp_t flags, int nodeid, struct page *page) in cache_grow() argument
2613 n = get_node(cachep, nodeid); in cache_grow()
2641 page = kmem_getpages(cachep, local_flags, nodeid); in cache_grow()
2647 local_flags & ~GFP_CONSTRAINT_MASK, nodeid); in cache_grow()
3086 int nodeid) in ____cache_alloc_node() argument
3094 VM_BUG_ON(nodeid < 0 || nodeid >= MAX_NUMNODES); in ____cache_alloc_node()
3095 n = get_node(cachep, nodeid); in ____cache_alloc_node()
3110 check_spinlock_acquired_node(cachep, nodeid); in ____cache_alloc_node()
3118 obj = slab_get_obj(cachep, page, nodeid); in ____cache_alloc_node()
3133 x = cache_grow(cachep, gfp_exact_node(flags), nodeid, NULL); in ____cache_alloc_node()
3144 slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, in slab_alloc_node() argument
3163 if (nodeid == NUMA_NO_NODE) in slab_alloc_node()
3164 nodeid = slab_node; in slab_alloc_node()
3166 if (unlikely(!get_node(cachep, nodeid))) { in slab_alloc_node()
3172 if (nodeid == slab_node) { in slab_alloc_node()
3184 ptr = ____cache_alloc_node(cachep, flags, nodeid); in slab_alloc_node()
3456 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid) in kmem_cache_alloc_node() argument
3458 void *ret = slab_alloc_node(cachep, flags, nodeid, _RET_IP_); in kmem_cache_alloc_node()
3462 flags, nodeid); in kmem_cache_alloc_node()
3471 int nodeid, in kmem_cache_alloc_node_trace() argument
3476 ret = slab_alloc_node(cachep, flags, nodeid, _RET_IP_); in kmem_cache_alloc_node_trace()
3480 flags, nodeid); in kmem_cache_alloc_node_trace()