| Function report | 
| Source Code: fs\mbcache.c | Create Date:2022-07-28 20:29:33 | 
| 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_shrink
Proto:static unsigned long mb_cache_shrink(struct mb_cache *cache, unsigned long nr_to_scan)
Type:unsigned long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mb_cache * | cache | |
| unsigned long | nr_to_scan | 
| 285 | shrunk = 0 | 
| 287 | spin_lock( & Protects c_list, c_entry_count ) | 
| 291 | If e_referenced Then | 
| 292 | e_referenced = 0 | 
| 294 | Continue | 
| 297 | Number of entries in cache -- | 
| 304 | hlist_bl_lock(head) | 
| 305 | If Not hlist_bl_unhashed( & Hash table list - protected by hash chain bitlock ) Then | 
| 307 | atomic_dec( & e_refcnt) | 
| 309 | hlist_bl_unlock(head) | 
| 310 | If mb_cache_entry_put(cache, entry) Then shrunk++ | 
| 312 | cond_resched() | 
| 313 | spin_lock( & Protects c_list, c_entry_count ) | 
| 317 | Return shrunk | 
| Name | Describe | 
|---|---|
| mb_cache_entry_create | mb_cache_entry_create - create entry in cache*@cache - cache where the entry should be created*@mask - gfp mask with which the entry should be allocated*@key - key of the entry*@value - value of the entry*@reusable - is the entry reusable by others? | 
| mb_cache_scan | |
| mb_cache_shrink_worker | 
| 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 |