Lines Matching refs:gc_state
189 static u8 gc_state; /* Internal persistent state */ in key_garbage_collector() local
201 kenter("[%lx,%x]", key_gc_flags, gc_state); in key_garbage_collector()
206 gc_state &= KEY_GC_REAPING_DEAD_1 | KEY_GC_REAPING_DEAD_2; in key_garbage_collector()
207 gc_state <<= 1; in key_garbage_collector()
209 gc_state |= KEY_GC_REAPING_LINKS; in key_garbage_collector()
212 gc_state |= KEY_GC_REAPING_DEAD_1; in key_garbage_collector()
213 kdebug("new pass %x", gc_state); in key_garbage_collector()
232 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_1)) { in key_garbage_collector()
234 gc_state |= KEY_GC_FOUND_DEAD_KEY; in key_garbage_collector()
255 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_2)) in key_garbage_collector()
257 gc_state |= KEY_GC_FOUND_DEAD_KEY; in key_garbage_collector()
259 if ((gc_state & KEY_GC_REAPING_LINKS) || in key_garbage_collector()
260 unlikely(gc_state & KEY_GC_REAPING_DEAD_2)) { in key_garbage_collector()
265 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_3)) in key_garbage_collector()
295 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_2) || in key_garbage_collector()
311 if (unlikely(gc_state & (KEY_GC_REAPING_DEAD_1 | in key_garbage_collector()
313 if (!(gc_state & KEY_GC_FOUND_DEAD_KEY)) { in key_garbage_collector()
318 gc_state &= ~(KEY_GC_REAPING_DEAD_1 | KEY_GC_REAPING_DEAD_2); in key_garbage_collector()
319 gc_state |= KEY_GC_REAPING_DEAD_3; in key_garbage_collector()
321 gc_state |= KEY_GC_REAP_AGAIN; in key_garbage_collector()
325 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_3)) { in key_garbage_collector()
332 if (gc_state & KEY_GC_REAP_AGAIN) in key_garbage_collector()
334 kleave(" [end %x]", gc_state); in key_garbage_collector()
346 gc_state |= KEY_GC_REAP_AGAIN; in key_garbage_collector()