2 #include <linux/vserver/context.h>
4 #include <linux/vs_context.h>
7 void vx_slab_alloc(struct kmem_cache *cachep, gfp_t flags)
9 int what = gfp_zone(cachep->gfpflags);
11 if (!current->vx_info)
14 atomic_add(cachep->buffer_size, ¤t->vx_info->cacct.slab[what]);
18 void vx_slab_free(struct kmem_cache *cachep)
20 int what = gfp_zone(cachep->gfpflags);
22 if (!current->vx_info)
25 atomic_sub(cachep->buffer_size, ¤t->vx_info->cacct.slab[what]);