X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context.c;h=9f84172799c99f171f292ec00228a34393869fba;hb=3bc8535a1d829ec1b7d34a36ffe6e5b22be5cfe1;hp=54fa447848177770d47e309d6eb52e60477cabb5;hpb=ceabb767180e064629b5a9ab4ed14449da864763;p=lttng-modules.git diff --git a/lttng-context.c b/lttng-context.c index 54fa4478..9f841727 100644 --- a/lttng-context.c +++ b/lttng-context.c @@ -11,7 +11,6 @@ #include #include #include -#include /* for wrapper_vmalloc_sync_all() */ #include #include @@ -82,12 +81,13 @@ struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p) struct lttng_ctx_field *new_fields; ctx->allocated_fields = max_t(size_t, 1, 2 * ctx->allocated_fields); - new_fields = lttng_kvzalloc(ctx->allocated_fields * sizeof(struct lttng_ctx_field), GFP_KERNEL); + new_fields = kvzalloc_node(ctx->allocated_fields * sizeof(struct lttng_ctx_field), + GFP_KERNEL, NUMA_NO_NODE); if (!new_fields) return NULL; if (ctx->fields) memcpy(new_fields, ctx->fields, sizeof(*ctx->fields) * ctx->nr_fields); - lttng_kvfree(ctx->fields); + kvfree(ctx->fields); ctx->fields = new_fields; } field = &ctx->fields[ctx->nr_fields]; @@ -205,7 +205,7 @@ void lttng_destroy_context(struct lttng_ctx *ctx) if (ctx->fields[i].destroy) ctx->fields[i].destroy(&ctx->fields[i]); } - lttng_kvfree(ctx->fields); + kvfree(ctx->fields); kfree(ctx); }