From 61dbadb2e775d8f2011157c453100a77024e87bf Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 25 Jan 2010 05:43:24 +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 | 3 +++ 1 file changed, 3 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 44f621f8078..b1e061eeef3 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; -- cgit