From 6b8435359140cb08f9580a4a304ab4a070452f8f Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 27 Jan 2010 06:56:41 +0000 Subject: performance/io-cache: cache only those files whose size falls under configured window. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati 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 --- xlators/performance/io-cache/src/io-cache.h | 4 ++++ 1 file changed, 4 insertions(+) (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 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; -- cgit