From 832fedddd215d8902b8a7fba1e06b4329ea2e651 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 6 Apr 2010 02:11:19 +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 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 44f621f8078..63c2609ec7f 100644 --- a/xlators/performance/io-cache/src/io-cache.h +++ b/xlators/performance/io-cache/src/io-cache.h @@ -130,9 +130,12 @@ struct ioc_page { struct ioc_cache { rbthash_table_t *page_table; struct list_head page_lru; - time_t mtime; /* - * mtime of the server file when last - * cached + uint32_t mtime; /* + * seconds component of file mtime on + * server + */ + uint32_t mtime_nsec; /* nanosecond component of file mtime + * on server */ struct timeval tv; /* * time-stamp at last re-validate -- cgit