wrapper: remove genhd wrapper
[lttng-modules.git] / lttng-context-ipc-ns.c
index cccd976602b7ec97118d50d959eae28731aa878d..4e9a60ee77769b0e30476f0f966d950d3a09e12e 100644 (file)
@@ -15,8 +15,6 @@
 #include <linux/ipc_namespace.h>
 #include <lttng-events.h>
 #include <wrapper/ringbuffer/frontend_types.h>
-#include <wrapper/vmalloc.h>
-#include <wrapper/namespace.h>
 #include <lttng-tracer.h>
 
 #if defined(CONFIG_IPC_NS) && \
@@ -47,7 +45,7 @@ void ipc_ns_record(struct lttng_ctx_field *field,
         * namespaces, just dereference the pointers.
         */
        if (current->nsproxy)
-               ipc_ns_inum = current->nsproxy->ipc_ns->lttng_ns_inum;
+               ipc_ns_inum = current->nsproxy->ipc_ns->ns.inum;
 
        lib_ring_buffer_align_ctx(ctx, lttng_alignof(ipc_ns_inum));
        chan->ops->event_write(ctx, &ipc_ns_inum, sizeof(ipc_ns_inum));
@@ -68,7 +66,7 @@ void ipc_ns_get_value(struct lttng_ctx_field *field,
         * namespaces, just dereference the pointers.
         */
        if (current->nsproxy)
-               ipc_ns_inum = current->nsproxy->ipc_ns->lttng_ns_inum;
+               ipc_ns_inum = current->nsproxy->ipc_ns->ns.inum;
 
        value->s64 = ipc_ns_inum;
 }
@@ -96,7 +94,6 @@ int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx)
        field->record = ipc_ns_record;
        field->get_value = ipc_ns_get_value;
        lttng_context_update(*ctx);
-       wrapper_vmalloc_sync_all();
        return 0;
 }
 EXPORT_SYMBOL_GPL(lttng_add_ipc_ns_to_ctx);
This page took 0.024042 seconds and 4 git commands to generate.