Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct mb_cache *cache
396  Remove one
403  If Not hlist_bl_unhashed( & Hash table list - protected by hash chain bitlock ) Then
404  hlist_bl_del_init( & Hash table list - protected by hash chain bitlock )
405  atomic_dec( & e_refcnt)
406  Else WARN_ON(1)
408  deletes entry from list
409  WARN_ON(atomic_read( & e_refcnt) != 1)
410  mb_cache_entry_put(cache, entry)
412  kfree(Hash table of entries )
413  kfree(cache)