summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src/io-cache.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-01-27 06:56:41 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-01-28 06:11:38 -0800
commit6b8435359140cb08f9580a4a304ab4a070452f8f (patch)
tree7fbb305abd27eca6360d41a04ec4f3813c7e326e /xlators/performance/io-cache/src/io-cache.h
parent6302f2c2262647974e94b494805f2a70da142949 (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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.h b/xlators/performance/io-cache/src/io-cache.h
index 8f628d207..2ff7e2dbb 100644
--- a/xlators/performance/io-cache/src/io-cache.h
+++ b/xlators/performance/io-cache/src/io-cache.h
@@ -127,6 +127,7 @@ struct ioc_page {
struct ioc_inode {
struct ioc_table *table;
+ off_t st_size;
struct list_head pages; /* list of pages of this inode */
struct list_head inode_list; /*
* list of inodes, maintained by io-cache
@@ -153,6 +154,9 @@ 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;