From bf3202d5c52f8af48b1bd11d912e1cb180edd601 Mon Sep 17 00:00:00 2001 From: tappro Date: Wed, 3 Sep 2008 08:11:09 +0000 Subject: [PATCH] - export handling for VBR b:15391 i:rread, bzzz --- lustre/include/lustre_export.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/include/lustre_export.h b/lustre/include/lustre_export.h index d87175e..3a58f34 100644 --- a/lustre/include/lustre_export.h +++ b/lustre/include/lustre_export.h @@ -169,6 +169,12 @@ struct obd_export { #define exp_mds_data u.eu_mds_data #define exp_filter_data u.eu_filter_data #define exp_ec_data u.eu_ec_data +static inline int exp_expired(struct obd_export *exp, __u32 age) +{ + LASSERT(exp->exp_delayed); + return cfs_time_before(exp->exp_last_request_time + age, + cfs_time_current_sec()); +} static inline int exp_connect_cancelset(struct obd_export *exp) { -- 1.8.3.1