| Function report | 
| Source Code: fs\mbcache.c | Create Date:2022-07-28 20:29:34 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mb_cache_destroy - destroy cache*@cache: the cache to destroy* Free all entries in cache and cache itself. Caller must make sure nobody* (except shrinker) can reach @cache when calling this.
Proto:void mb_cache_destroy(struct mb_cache *cache)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mb_cache * | cache | 
| 396 | Remove one | 
| 403 | If Not hlist_bl_unhashed( & Hash table list - protected by hash chain bitlock ) Then | 
| 405 | atomic_dec( & e_refcnt) | 
| 406 | Else WARN_ON(1) | 
| 409 | WARN_ON(atomic_read( & e_refcnt) != 1) | 
| 410 | mb_cache_entry_put(cache, entry) | 
| 412 | kfree(Hash table of entries ) | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |