From: Mathieu Desnoyers Date: Fri, 17 Apr 2015 16:35:55 +0000 (-0400) Subject: Fix: ext4 ext4_da_write_pages instrumentation for kernels < 3.11.0 X-Git-Tag: v2.7.0-rc1~50 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7e62620181be872aa2f9547d7b087790ed1c47b2;p=lttng-modules.git Fix: ext4 ext4_da_write_pages instrumentation for kernels < 3.11.0 Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/ext4.h b/instrumentation/events/lttng-module/ext4.h index 41c89fd3..0a17bece 100644 --- a/instrumentation/events/lttng-module/ext4.h +++ b/instrumentation/events/lttng-module/ext4.h @@ -277,7 +277,7 @@ LTTNG_TRACEPOINT_EVENT(ext4_da_write_pages, ctf_integer(int, io_done, mpd->io_done) ctf_integer(int, pages_written, mpd->pages_written) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)) - ctf_integer(int, sync_mode, mpd->sync_mode) + ctf_integer(int, sync_mode, mpd->wbc->sync_mode) #endif ) )