From fb54f382e19b2bead226184b0f505eb6900991cf Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Tue, 11 Aug 2020 11:28:16 +0300 Subject: performance/quick-read: simplify and cleanup internal time management Since this xlator measures time intervals in seconds, gettimeofday() may be replaced with simpler gf_time(). Signed-off-by: Dmitry Antipov Change-Id: I5962771acbe8553dca51970183a55786a5289828 Updates: #1002 --- xlators/performance/quick-read/src/quick-read.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/performance/quick-read/src/quick-read.h') diff --git a/xlators/performance/quick-read/src/quick-read.h b/xlators/performance/quick-read/src/quick-read.h index 67850821b8e..20fcc70b3a7 100644 --- a/xlators/performance/quick-read/src/quick-read.h +++ b/xlators/performance/quick-read/src/quick-read.h @@ -39,7 +39,7 @@ struct qr_inode { uint32_t ia_ctime_nsec; uint32_t gen_rollover; struct iatt buf; - struct timeval last_refresh; + time_t last_refresh; struct list_head lru; uint64_t gen; uint64_t invalidation_time; -- cgit