Whamcloud - gitweb
LU-6142 selftest: remove typedefs from lnet selftest
[fs/lustre-release.git] / lnet / selftest / timer.c
index ff016e9..f4e70bd 100644 (file)
@@ -64,7 +64,7 @@ static struct st_timer_data {
 } stt_data;
 
 void
-stt_add_timer(stt_timer_t *timer)
+stt_add_timer(struct stt_timer *timer)
 {
        struct list_head *pos;
 
@@ -78,7 +78,8 @@ stt_add_timer(stt_timer_t *timer)
 
        /* a simple insertion sort */
        list_for_each_prev(pos, STTIMER_SLOT(timer->stt_expires)) {
-               stt_timer_t *old = list_entry(pos, stt_timer_t, stt_list);
+               struct stt_timer *old = list_entry(pos, struct stt_timer,
+                                                  stt_list);
 
                if (timer->stt_expires >= old->stt_expires)
                        break;
@@ -98,7 +99,7 @@ stt_add_timer(stt_timer_t *timer)
  * another CPU.
  */
 int
-stt_del_timer(stt_timer_t *timer)
+stt_del_timer(struct stt_timer *timer)
 {
        int ret = 0;
 
@@ -121,10 +122,10 @@ static int
 stt_expire_list(struct list_head *slot, time64_t now)
 {
        int          expired = 0;
-       stt_timer_t *timer;
+       struct stt_timer *timer;
 
        while (!list_empty(slot)) {
-               timer = list_entry(slot->next, stt_timer_t, stt_list);
+               timer = list_entry(slot->next, struct stt_timer, stt_list);
 
                if (timer->stt_expires > now)
                        break;