From 4b2ad2f83903072c794daf7e9692f2fe20e72415 Mon Sep 17 00:00:00 2001 From: zam Date: Tue, 2 Dec 2008 20:08:41 +0000 Subject: [PATCH] Branch HEAD b=17867 i=yury.umanets Compile fix: move the fld_cache_entry_delete function body above all the references to it. --- lustre/fld/fld_cache.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/lustre/fld/fld_cache.c b/lustre/fld/fld_cache.c index 695fc21..359f5f2 100644 --- a/lustre/fld/fld_cache.c +++ b/lustre/fld/fld_cache.c @@ -133,8 +133,17 @@ void fld_cache_fini(struct fld_cache *cache) EXIT; } +/** + * delete given node from list. + */ static inline void fld_cache_entry_delete(struct fld_cache *cache, - struct fld_cache_entry *node); + struct fld_cache_entry *node) +{ + list_del(&node->fce_list); + list_del(&node->fce_lru); + cache->fci_cache_count--; + OBD_FREE_PTR(node); +} /** * fix list by checking new entry with NEXT entry in order. @@ -215,18 +224,6 @@ static inline void fld_cache_entry_add(struct fld_cache *cache, } /** - * delete given node from list. - */ -static inline void fld_cache_entry_delete(struct fld_cache *cache, - struct fld_cache_entry *node) -{ - list_del(&node->fce_list); - list_del(&node->fce_lru); - cache->fci_cache_count--; - OBD_FREE_PTR(node); -} - -/** * Check if cache needs to be shrunk. If so - do it. * Remove one entry in list and so on until cache is shrunk enough. */ -- 1.8.3.1