summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src/io-cache.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-01-25 05:43:24 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-01-25 04:32:23 -0800
commit61dbadb2e775d8f2011157c453100a77024e87bf (patch)
treedd281a04d08f3a6ff2b83a569f3224a9cdfc9d65 /xlators/performance/io-cache/src/io-cache.h
parent3eef8dfd1bd7775e2b5ddddb07726b4bf4f6ee22 (diff)
performance/io-cache: cache only those files whose size falls under configured window.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 570 (Cache only those files whose sizes falls under a configured window size) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=570
Diffstat (limited to 'xlators/performance/io-cache/src/io-cache.h')
-rw-r--r--xlators/performance/io-cache/src/io-cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.h b/xlators/performance/io-cache/src/io-cache.h
index 44f621f80..b1e061eee 100644
--- a/xlators/performance/io-cache/src/io-cache.h
+++ b/xlators/performance/io-cache/src/io-cache.h
@@ -141,6 +141,7 @@ struct ioc_cache {
struct ioc_inode {
struct ioc_table *table;
+ off_t st_size;
struct ioc_cache cache;
struct list_head inode_list; /*
* list of inodes, maintained by
@@ -159,6 +160,8 @@ struct ioc_table {
uint64_t page_size;
uint64_t cache_size;
uint64_t cache_used;
+ int64_t min_file_size;
+ int64_t max_file_size;
struct list_head inodes; /* list of inodes cached */
struct list_head active;
struct list_head *inode_lru;