summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src/io-cache.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-04-06 02:16:20 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-08 03:08:42 -0700
commit0014fe4cc0f62cdb1d0292d37caf19c31f6d2d9e (patch)
treea6063450f233f959de4db076e15e4eb603bd13a6 /xlators/performance/io-cache/src/io-cache.h
parentab9fc36210071f95d5cb723e0fb9b738d31c8651 (diff)
performance/io-cache: make use of nano second resolution of mtime during cache validation.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'xlators/performance/io-cache/src/io-cache.h')
-rw-r--r--xlators/performance/io-cache/src/io-cache.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.h b/xlators/performance/io-cache/src/io-cache.h
index 2ff7e2dbb..2f354c67f 100644
--- a/xlators/performance/io-cache/src/io-cache.h
+++ b/xlators/performance/io-cache/src/io-cache.h
@@ -141,10 +141,14 @@ struct ioc_inode {
* weight of the inode, increases on each
* read
*/
- 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
*/