Lines Matching refs:avc_cache
71 struct avc_cache { struct
92 static struct avc_cache avc_cache; argument
182 INIT_HLIST_HEAD(&avc_cache.slots[i]); in avc_init()
183 spin_lock_init(&avc_cache.slots_lock[i]); in avc_init()
185 atomic_set(&avc_cache.active_nodes, 0); in avc_init()
186 atomic_set(&avc_cache.lru_hint, 0); in avc_init()
215 head = &avc_cache.slots[i]; in avc_get_hash_stats()
230 atomic_read(&avc_cache.active_nodes), in avc_get_hash_stats()
497 atomic_dec(&avc_cache.active_nodes); in avc_node_delete()
505 atomic_dec(&avc_cache.active_nodes); in avc_node_kill()
512 atomic_dec(&avc_cache.active_nodes); in avc_node_replace()
524 hvalue = atomic_inc_return(&avc_cache.lru_hint) & (AVC_CACHE_SLOTS - 1); in avc_reclaim_node()
525 head = &avc_cache.slots[hvalue]; in avc_reclaim_node()
526 lock = &avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
560 if (atomic_inc_return(&avc_cache.active_nodes) > avc_cache_threshold) in avc_alloc_node()
582 head = &avc_cache.slots[hvalue]; in avc_search_node()
629 if (seqno < avc_cache.latest_notif) { in avc_latest_notif_update()
631 seqno, avc_cache.latest_notif); in avc_latest_notif_update()
635 if (seqno > avc_cache.latest_notif) in avc_latest_notif_update()
636 avc_cache.latest_notif = seqno; in avc_latest_notif_update()
685 head = &avc_cache.slots[hvalue]; in avc_insert()
686 lock = &avc_cache.slots_lock[hvalue]; in avc_insert()
840 head = &avc_cache.slots[hvalue]; in avc_update_node()
841 lock = &avc_cache.slots_lock[hvalue]; in avc_update_node()
920 head = &avc_cache.slots[i]; in avc_flush()
921 lock = &avc_cache.slots_lock[i]; in avc_flush()
1174 return avc_cache.latest_notif; in avc_policy_seqno()