X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context-mnt-ns.c;h=72f4c8eca2fd1ce7145c0fd249c0bc726ec20db4;hb=1a228b02e01297f749be52a09ece0b16e3840c2d;hp=98d5b8e60bc78f3f0195ee3557442cee1e0243b7;hpb=a6cf40a4491954d6f81052f8bbce757f73727f16;p=lttng-modules.git diff --git a/lttng-context-mnt-ns.c b/lttng-context-mnt-ns.c index 98d5b8e6..72f4c8ec 100644 --- a/lttng-context-mnt-ns.c +++ b/lttng-context-mnt-ns.c @@ -13,13 +13,14 @@ #include #include #include +#include #include #include #include #include #if !defined(LTTNG_MNT_NS_MISSING_HEADER) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) + (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0)) #include <../fs/mount.h> @@ -97,7 +98,7 @@ int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx) field->record = mnt_ns_record; field->get_value = mnt_ns_get_value; lttng_context_update(*ctx); - wrapper_vmalloc_sync_all(); + wrapper_vmalloc_sync_mappings(); return 0; } EXPORT_SYMBOL_GPL(lttng_add_mnt_ns_to_ctx);