Skip to content
Snippets Groups Projects
Commit 4b2ad2f8 authored by Alexander Zarochentsev's avatar Alexander Zarochentsev
Browse files

Branch HEAD

b=17867
i=yury.umanets

Compile fix: move the fld_cache_entry_delete function body
above all the references to it.
parent 44cc49dd
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......@@ -214,18 +223,6 @@ static inline void fld_cache_entry_add(struct fld_cache *cache,
fld_fix_new_list(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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment