From: Mathieu Desnoyers Date: Thu, 20 Mar 2014 14:01:51 +0000 (-0400) Subject: Fix: block instrumentation: < 3.14 don't have bi_iter X-Git-Tag: v2.4.1~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=aea65df5df64560b10619a7221825a17983b25ba;p=lttng-modules.git Fix: block instrumentation: < 3.14 don't have bi_iter Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/block.h b/instrumentation/events/lttng-module/block.h index a75bb637..8d267979 100644 --- a/instrumentation/events/lttng-module/block.h +++ b/instrumentation/events/lttng-module/block.h @@ -810,7 +810,7 @@ TRACE_EVENT(block_split, tp_assign(dev, bio->bi_bdev->bd_dev) tp_assign(sector, bio->bi_sector) tp_assign(new_sector, new_sector) - blk_fill_rwbs(rwbs, bio->bi_rw, bio->bi_iter.bi_size) + blk_fill_rwbs(rwbs, bio->bi_rw, bio->bi_size) tp_memcpy(comm, current->comm, TASK_COMM_LEN) #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)) */ ),