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_entry_delete - remove a cache entry*@cache - cache we work with*@key - key*@value - value* Remove entry from cache @cache with key @key and value @value.
Proto:void mb_cache_entry_delete(struct mb_cache *cache, unsigned int key, u64 value)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mb_cache * | cache | |
| unsigned int | key | |
| u64 | value |
| 233 | head = mb_cache_entry_head(cache, key) |
| 234 | hlist_bl_lock(head) |
| 239 | hlist_bl_unlock(head) |
| 240 | spin_lock( & Protects c_list, c_entry_count ) |
| 243 | If Not WARN_ONCE(Number of entries in cache == 0, "mbcache: attempt to decrement c_entry_count past zero") Then Number of entries in cache -- |
| 246 | atomic_dec( & e_refcnt) |
| 249 | mb_cache_entry_put(cache, entry) |
| 250 | Return |
| 253 | hlist_bl_unlock(head) |
| 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 |