Lines Matching refs:gc_state

176 	static u8 gc_state;		/* Internal persistent state */  in key_garbage_collector()  local
189 kenter("[%lx,%x]", key_gc_flags, gc_state); in key_garbage_collector()
198 gc_state &= KEY_GC_REAPING_DEAD_1 | KEY_GC_REAPING_DEAD_2; in key_garbage_collector()
199 gc_state <<= 1; in key_garbage_collector()
201 gc_state |= KEY_GC_REAPING_LINKS | KEY_GC_SET_TIMER; in key_garbage_collector()
204 gc_state |= KEY_GC_REAPING_DEAD_1; in key_garbage_collector()
205 kdebug("new pass %x", gc_state); in key_garbage_collector()
224 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_1)) { in key_garbage_collector()
226 gc_state |= KEY_GC_FOUND_DEAD_KEY; in key_garbage_collector()
236 if (gc_state & KEY_GC_SET_TIMER) { in key_garbage_collector()
244 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_2)) in key_garbage_collector()
246 gc_state |= KEY_GC_FOUND_DEAD_KEY; in key_garbage_collector()
248 if ((gc_state & KEY_GC_REAPING_LINKS) || in key_garbage_collector()
249 unlikely(gc_state & KEY_GC_REAPING_DEAD_2)) { in key_garbage_collector()
254 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_3)) in key_garbage_collector()
279 if (gc_state & KEY_GC_SET_TIMER && new_timer != (time64_t)TIME64_MAX) { in key_garbage_collector()
284 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_2) || in key_garbage_collector()
300 if (unlikely(gc_state & (KEY_GC_REAPING_DEAD_1 | in key_garbage_collector()
302 if (!(gc_state & KEY_GC_FOUND_DEAD_KEY)) { in key_garbage_collector()
307 gc_state &= ~(KEY_GC_REAPING_DEAD_1 | KEY_GC_REAPING_DEAD_2); in key_garbage_collector()
308 gc_state |= KEY_GC_REAPING_DEAD_3; in key_garbage_collector()
310 gc_state |= KEY_GC_REAP_AGAIN; in key_garbage_collector()
314 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_3)) { in key_garbage_collector()
321 if (gc_state & KEY_GC_REAP_AGAIN) in key_garbage_collector()
323 kleave(" [end %x]", gc_state); in key_garbage_collector()
335 gc_state |= KEY_GC_REAP_AGAIN; in key_garbage_collector()