diff options
author | Raghavendra G <raghavendra@gluster.com> | 2010-04-06 02:11:19 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-04-08 03:09:01 -0700 |
commit | 832fedddd215d8902b8a7fba1e06b4329ea2e651 (patch) | |
tree | fbfd0c1672fc151060d3f61e1fe0e18afefa04cf /xlators/performance/io-cache/src/io-cache.h | |
parent | 0f892d517b1907e2bd8cb3ac26699e2027d67fe6 (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.h | 9 |
1 files changed, 6 insertions, 3 deletions
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 |