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.
}
/**
- * 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.
*/