[sheepdog] [PATCH 4/4] util/sd_inode: kill icache_init()
Liu Yuan
namei.unix at gmail.com
Thu Feb 20 06:07:54 CET 2014
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
lib/sd_inode.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/lib/sd_inode.c b/lib/sd_inode.c
index 3391ed2..1dd4ec2 100644
--- a/lib/sd_inode.c
+++ b/lib/sd_inode.c
@@ -223,11 +223,6 @@ struct inode_cache {
} cache_array[NUMBER_OF_CACHE];
static int cache_idx;
-static void icache_init(void)
-{
- cache_idx = 0;
-}
-
static void icache_writeout(int copies, int policy)
{
int i;
@@ -241,7 +236,7 @@ static void icache_writeout(int copies, int policy)
static void icache_release(int copies, int policy)
{
icache_writeout(copies, policy);
- icache_init();
+ cache_idx = 0; /* reset icache */
}
static void icache_insert(int copies, int policy,
--
1.8.1.2
More information about the sheepdog
mailing list