From 33101bd66614908efafc91ff2950ef3e34b76a3b Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 5 Apr 2010 13:36:07 +0000 Subject: performance/io-cache: make use of nano second resolution of mtime during cache validation. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 801 (Direct io-mode support and related changes in caching translators.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=801 --- xlators/performance/io-cache/src/io-cache.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xlators/performance/io-cache/src/io-cache.h') diff --git a/xlators/performance/io-cache/src/io-cache.h b/xlators/performance/io-cache/src/io-cache.h index 15a2828bbc8..0b164efe4f4 100644 --- a/xlators/performance/io-cache/src/io-cache.h +++ b/xlators/performance/io-cache/src/io-cache.h @@ -131,8 +131,10 @@ struct ioc_cache { rbthash_table_t *page_table; struct list_head page_lru; time_t mtime; /* - * mtime of the server file when last - * cached + * seconds component of file mtime + */ + time_t mtime_nsec; /* + * nanosecond component of file mtime */ struct timeval tv; /* * time-stamp at last re-validate -- cgit