Lines Matching refs:u
111 struct unix_sock *u = unix_sk(sk); in scan_inflight() local
117 if (test_bit(UNIX_GC_CANDIDATE, &u->gc_flags)) { in scan_inflight()
120 func(u); in scan_inflight()
141 struct unix_sock *u; in scan_children() local
149 u = unix_sk(skb->sk); in scan_children()
154 BUG_ON(!list_empty(&u->link)); in scan_children()
155 list_add_tail(&u->link, &embryos); in scan_children()
160 u = list_entry(embryos.next, struct unix_sock, link); in scan_children()
161 scan_inflight(&u->sk, func, hitlist); in scan_children()
162 list_del_init(&u->link); in scan_children()
177 static void inc_inflight_move_tail(struct unix_sock *u) in inc_inflight_move_tail() argument
179 atomic_long_inc(&u->inflight); in inc_inflight_move_tail()
184 if (test_bit(UNIX_GC_MAYBE_CYCLE, &u->gc_flags)) in inc_inflight_move_tail()
185 list_move_tail(&u->link, &gc_candidates); in inc_inflight_move_tail()
208 struct unix_sock *u; in unix_gc() local
238 list_for_each_entry_safe(u, next, &gc_inflight_list, link) { in unix_gc()
242 total_refs = file_count(u->sk.sk_socket->file); in unix_gc()
243 inflight_refs = atomic_long_read(&u->inflight); in unix_gc()
248 list_move_tail(&u->link, &gc_candidates); in unix_gc()
249 __set_bit(UNIX_GC_CANDIDATE, &u->gc_flags); in unix_gc()
250 __set_bit(UNIX_GC_MAYBE_CYCLE, &u->gc_flags); in unix_gc()
257 list_for_each_entry(u, &gc_candidates, link) in unix_gc()
258 scan_children(&u->sk, dec_inflight, NULL); in unix_gc()
269 u = list_entry(cursor.next, struct unix_sock, link); in unix_gc()
272 list_move(&cursor, &u->link); in unix_gc()
274 if (atomic_long_read(&u->inflight) > 0) { in unix_gc()
275 list_move_tail(&u->link, ¬_cycle_list); in unix_gc()
276 __clear_bit(UNIX_GC_MAYBE_CYCLE, &u->gc_flags); in unix_gc()
277 scan_children(&u->sk, inc_inflight_move_tail, NULL); in unix_gc()
287 list_for_each_entry(u, &gc_candidates, link) in unix_gc()
288 scan_children(&u->sk, inc_inflight, &hitlist); in unix_gc()
294 u = list_entry(not_cycle_list.next, struct unix_sock, link); in unix_gc()
295 __clear_bit(UNIX_GC_CANDIDATE, &u->gc_flags); in unix_gc()
296 list_move_tail(&u->link, &gc_inflight_list); in unix_gc()
322 list_for_each_entry_safe(u, next, &gc_candidates, link) in unix_gc()
323 list_move_tail(&u->link, &gc_inflight_list); in unix_gc()