[rh7] vz_latency/vzwdog: Build fix.

Submitted by Andrey Ryabinin on Aug. 31, 2018, 2:58 p.m.

Details

Message ID 20180831145829.19955-1-aryabinin@virtuozzo.com
State New
Series "vz/latencies"
Headers show

Commit Message

Andrey Ryabinin Aug. 31, 2018, 2:58 p.m.
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 kernel/ve/vzwdog.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/kernel/ve/vzwdog.c b/kernel/ve/vzwdog.c
index def8eee062b5..6ef671d9a25b 100644
--- a/kernel/ve/vzwdog.c
+++ b/kernel/ve/vzwdog.c
@@ -78,12 +78,12 @@  static void update_max_alloc_latency(void)
 
 	for (i = 0; i < KSTAT_ALLOCSTAT_NR; i++)
 		max_alloc_lat[i] = max(max_alloc_lat[i],
-				kstat_glob.alloc_lat[i].last.maxlat);
+				kstat_glob.alloc_lat[i].last.maxlat[0]);
 }
 
 static void update_max_schedule_latency(void)
 {
-	max_sched_lat = max(max_sched_lat, kstat_glob.sched_lat.last.maxlat);
+	max_sched_lat = max(max_sched_lat, kstat_glob.sched_lat.last.maxlat[0]);
 }
 
 static void update_max_latencies(void)
@@ -118,7 +118,7 @@  static void show_alloc_latency(void)
 
 		p = &kstat_glob.alloc_lat[i];
 		spin_lock_irq(&kstat_glb_lock);
-		maxlat = p->last.maxlat;
+		maxlat = p->last.maxlat[0];
 		avg0 = p->avg[0];
 		avg1 = p->avg[1];
 		avg2 = p->avg[2];
@@ -143,7 +143,7 @@  static void show_schedule_latency(void)
 
 	p = &kstat_glob.sched_lat;
 	spin_lock_irq(&kstat_glb_lock);
-	maxlat = p->last.maxlat;
+	maxlat = p->last.maxlat[0];
 	totlat = p->last.totlat;
 	count = p->last.count;
 	avg0 = p->avg[0];