From 51bc07c44d69f9e79bb4a6d6316764e270dafc64 Mon Sep 17 00:00:00 2001 From: freym Date: Thu, 12 Jun 2003 23:03:25 +0000 Subject: [PATCH] checking statfs cache expiration in obd_statfs --- lnet/include/lnet/timer.h | 8 ++++++++ lustre/portals/include/portals/timer.h | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 lnet/include/lnet/timer.h create mode 100644 lustre/portals/include/portals/timer.h diff --git a/lnet/include/lnet/timer.h b/lnet/include/lnet/timer.h new file mode 100644 index 0000000..39fdc0d --- /dev/null +++ b/lnet/include/lnet/timer.h @@ -0,0 +1,8 @@ +#ifndef _PORTALS_TIMER_H +#define _PORTALS_TIMER_H + +/* same as linux/timer.h, but for user space */ + +#define time_after(a,b) ((long)(b) - (long)(a) < 0) + +#endif diff --git a/lustre/portals/include/portals/timer.h b/lustre/portals/include/portals/timer.h new file mode 100644 index 0000000..39fdc0d --- /dev/null +++ b/lustre/portals/include/portals/timer.h @@ -0,0 +1,8 @@ +#ifndef _PORTALS_TIMER_H +#define _PORTALS_TIMER_H + +/* same as linux/timer.h, but for user space */ + +#define time_after(a,b) ((long)(b) - (long)(a) < 0) + +#endif -- 1.8.3.1