Home
last modified time | relevance | path

Searched refs:victim (Results 1 – 25 of 72) sorted by relevance

123

/OK3568_Linux_fs/kernel/mm/
H A Doom_kill.c481 static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim) in dump_oom_summary() argument
488 mem_cgroup_print_oom_context(oc->memcg, victim); in dump_oom_summary()
489 pr_cont(",task=%s,pid=%d,uid=%d\n", victim->comm, victim->pid, in dump_oom_summary()
490 from_kuid(&init_user_ns, task_uid(victim))); in dump_oom_summary()
907 static void __oom_kill_process(struct task_struct *victim, const char *message) in __oom_kill_process() argument
913 p = find_lock_task_mm(victim); in __oom_kill_process()
916 message, task_pid_nr(victim), victim->comm); in __oom_kill_process()
917 put_task_struct(victim); in __oom_kill_process()
919 } else if (victim != p) { in __oom_kill_process()
921 put_task_struct(victim); in __oom_kill_process()
[all …]
H A Dreadahead.c73 struct page *victim; in read_cache_pages_invalidate_pages() local
76 victim = lru_to_page(pages); in read_cache_pages_invalidate_pages()
77 list_del(&victim->lru); in read_cache_pages_invalidate_pages()
78 read_cache_pages_invalidate_page(mapping, victim); in read_cache_pages_invalidate_pages()
/OK3568_Linux_fs/kernel/drivers/usb/core/
H A Durb.c814 struct urb *victim; in usb_kill_anchored_urbs() local
820 victim = list_entry(anchor->urb_list.prev, in usb_kill_anchored_urbs()
823 usb_get_urb(victim); in usb_kill_anchored_urbs()
826 usb_kill_urb(victim); in usb_kill_anchored_urbs()
827 usb_put_urb(victim); in usb_kill_anchored_urbs()
852 struct urb *victim; in usb_poison_anchored_urbs() local
859 victim = list_entry(anchor->urb_list.prev, in usb_poison_anchored_urbs()
862 usb_get_urb(victim); in usb_poison_anchored_urbs()
865 usb_poison_urb(victim); in usb_poison_anchored_urbs()
866 usb_put_urb(victim); in usb_poison_anchored_urbs()
[all …]
/OK3568_Linux_fs/u-boot/common/
H A Ddlmalloc.c1242 mchunkptr victim; /* inspected/selected chunk */ local
1281 victim = last(q);
1284 if (victim == q)
1287 victim = last(q);
1289 if (victim != q)
1291 victim_size = chunksize(victim);
1292 unlink(victim, bck, fwd);
1293 set_inuse_bit_at_offset(victim, victim_size);
1294 check_malloced_chunk(victim, nb);
1295 return chunk2mem(victim);
[all …]
H A Ddlmalloc.src2107 mchunkptr victim; /* inspected/selected chunk */
2135 victim = last(q);
2138 if (victim == q)
2141 victim = last(q);
2143 if (victim != q)
2145 victim_size = chunksize(victim);
2146 unlink(victim, bck, fwd);
2147 set_inuse_bit_at_offset(victim, victim_size);
2148 check_malloced_chunk(victim, nb);
2149 return chunk2mem(victim);
[all …]
/OK3568_Linux_fs/kernel/lib/
H A Drbtree.c553 void rb_replace_node(struct rb_node *victim, struct rb_node *new, in rb_replace_node() argument
556 struct rb_node *parent = rb_parent(victim); in rb_replace_node()
559 *new = *victim; in rb_replace_node()
562 if (victim->rb_left) in rb_replace_node()
563 rb_set_parent(victim->rb_left, new); in rb_replace_node()
564 if (victim->rb_right) in rb_replace_node()
565 rb_set_parent(victim->rb_right, new); in rb_replace_node()
566 __rb_change_child(victim, new, parent, root); in rb_replace_node()
570 void rb_replace_node_rcu(struct rb_node *victim, struct rb_node *new, in rb_replace_node_rcu() argument
573 struct rb_node *parent = rb_parent(victim); in rb_replace_node_rcu()
[all …]
H A Dbtree.c639 int btree_merge(struct btree_head *target, struct btree_head *victim, in btree_merge() argument
647 BUG_ON(target == victim); in btree_merge()
651 target->node = victim->node; in btree_merge()
652 target->height = victim->height; in btree_merge()
653 __btree_init(victim); in btree_merge()
661 if (!btree_last(victim, geo, key)) in btree_merge()
663 val = btree_lookup(victim, geo, key); in btree_merge()
670 btree_remove(victim, geo, dup); in btree_merge()
/OK3568_Linux_fs/kernel/fs/cachefiles/
H A Dnamei.c869 struct dentry *victim; in cachefiles_check_active() local
880 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active()
882 if (IS_ERR(victim)) in cachefiles_check_active()
891 if (d_is_negative(victim)) { in cachefiles_check_active()
893 dput(victim); in cachefiles_check_active()
906 if (object->dentry > victim) in cachefiles_check_active()
908 else if (object->dentry < victim) in cachefiles_check_active()
917 return victim; in cachefiles_check_active()
922 dput(victim); in cachefiles_check_active()
928 ret = PTR_ERR(victim); in cachefiles_check_active()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/kvm/
H A Dtrace.h49 TP_PROTO(unsigned int victim, unsigned int tid, unsigned int word0,
51 TP_ARGS(victim, tid, word0, word1, word2),
54 __field( unsigned int, victim )
62 __entry->victim = victim;
70 __entry->victim, __entry->tid, __entry->word0,
H A De500_mmu.c39 unsigned int victim; in gtlb0_get_next_victim() local
41 victim = vcpu_e500->gtlb_nv[0]++; in gtlb0_get_next_victim()
45 return victim; in gtlb0_get_next_victim()
130 unsigned int victim, tsized; in kvmppc_e500_deliver_tlb_miss() local
135 victim = (tlbsel == 0) ? gtlb0_get_next_victim(vcpu_e500) : 0; in kvmppc_e500_deliver_tlb_miss()
138 vcpu->arch.shared->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(victim) in kvmppc_e500_deliver_tlb_miss()
366 int victim; in kvmppc_e500_emul_tlbsx() local
370 victim = (tlbsel == 0) ? gtlb0_get_next_victim(vcpu_e500) : 0; in kvmppc_e500_emul_tlbsx()
373 | MAS0_ESEL(victim) in kvmppc_e500_emul_tlbsx()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/cell/spufs/
H A Dsched.c619 struct spu_context *victim = NULL; in find_victim() local
645 (!victim || tmp->prio > victim->prio)) { in find_victim()
646 victim = spu->ctx; in find_victim()
649 if (victim) in find_victim()
650 get_spu_context(victim); in find_victim()
653 if (victim) { in find_victim()
664 if (!mutex_trylock(&victim->state_mutex)) { in find_victim()
665 put_spu_context(victim); in find_victim()
666 victim = NULL; in find_victim()
670 spu = victim->spu; in find_victim()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Drbtree.h64 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new,
66 extern void rb_replace_node_rcu(struct rb_node *victim, struct rb_node *new,
152 static inline void rb_replace_node_cached(struct rb_node *victim, in rb_replace_node_cached() argument
156 if (root->rb_leftmost == victim) in rb_replace_node_cached()
158 rb_replace_node(victim, new, &root->rb_root); in rb_replace_node_cached()
H A Dbtree-128.h78 struct btree_head128 *victim, in btree_merge128() argument
81 return btree_merge(&target->h, &victim->h, &btree_geo128, gfp); in btree_merge128()
/OK3568_Linux_fs/u-boot/lib/
H A Drbtree.c496 void rb_replace_node(struct rb_node *victim, struct rb_node *new, in rb_replace_node() argument
499 struct rb_node *parent = rb_parent(victim); in rb_replace_node()
502 __rb_change_child(victim, new, parent, root); in rb_replace_node()
503 if (victim->rb_left) in rb_replace_node()
504 rb_set_parent(victim->rb_left, new); in rb_replace_node()
505 if (victim->rb_right) in rb_replace_node()
506 rb_set_parent(victim->rb_right, new); in rb_replace_node()
509 *new = *victim; in rb_replace_node()
/OK3568_Linux_fs/kernel/tools/lib/
H A Drbtree.c545 void rb_replace_node(struct rb_node *victim, struct rb_node *new, in rb_replace_node() argument
548 struct rb_node *parent = rb_parent(victim); in rb_replace_node()
551 *new = *victim; in rb_replace_node()
554 if (victim->rb_left) in rb_replace_node()
555 rb_set_parent(victim->rb_left, new); in rb_replace_node()
556 if (victim->rb_right) in rb_replace_node()
557 rb_set_parent(victim->rb_right, new); in rb_replace_node()
558 __rb_change_child(victim, new, parent, root); in rb_replace_node()
/OK3568_Linux_fs/kernel/kernel/
H A Daudit_tree.c569 static void prune_tree_chunks(struct audit_tree *victim, bool tagged) in prune_tree_chunks() argument
572 while (!list_empty(&victim->chunks)) { in prune_tree_chunks()
577 p = list_first_entry(&victim->chunks, struct node, list); in prune_tree_chunks()
601 static void prune_one(struct audit_tree *victim) in prune_one() argument
603 prune_tree_chunks(victim, false); in prune_one()
604 put_tree(victim); in prune_one()
766 struct audit_tree *victim; in prune_tree_thread() local
768 victim = list_entry(prune_list.next, in prune_tree_thread()
770 list_del_init(&victim->list); in prune_tree_thread()
774 prune_one(victim); in prune_tree_thread()
[all …]
/OK3568_Linux_fs/kernel/tools/include/linux/
H A Drbtree.h63 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new,
146 static inline void rb_replace_node_cached(struct rb_node *victim, in rb_replace_node_cached() argument
150 if (root->rb_leftmost == victim) in rb_replace_node_cached()
152 rb_replace_node(victim, new, &root->rb_root); in rb_replace_node_cached()
/OK3568_Linux_fs/kernel/drivers/mmc/core/
H A Dsdio_cis.c373 struct sdio_func_tuple *tuple, *victim; in sdio_free_common_cis() local
378 victim = tuple; in sdio_free_common_cis()
380 kfree(victim); in sdio_free_common_cis()
414 struct sdio_func_tuple *tuple, *victim; in sdio_free_func_cis() local
419 victim = tuple; in sdio_free_func_cis()
421 kfree(victim); in sdio_free_func_cis()
/OK3568_Linux_fs/kernel/init/
H A Dinitramfs.c195 static __initdata char *victim; variable
201 victim += n; in eat()
213 collected = victim; in read_into()
237 memcpy(collect, victim, n); in do_collect()
290 while (byte_count && *victim == '\0') in do_reset()
372 if (xwrite(wfile, victim, body_len, &wfile_pos) != body_len) in do_copy()
384 if (xwrite(wfile, victim, byte_count, &wfile_pos) != byte_count) in do_copy()
418 victim = buf; in write_buffer()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A Dlocal_storage.c57 int BPF_PROG(unlink_hook, struct inode *dir, struct dentry *victim) in BPF_PROG() argument
66 storage = bpf_inode_storage_get(&inode_storage_map, victim->d_inode, 0, in BPF_PROG()
74 err = bpf_inode_storage_delete(&inode_storage_map, victim->d_inode); in BPF_PROG()
/OK3568_Linux_fs/kernel/fs/erofs/
H A Ddecompressor.c83 struct page *victim; in z_erofs_lz4_prepare_destpages() local
115 victim = availables[--top]; in z_erofs_lz4_prepare_destpages()
116 get_page(victim); in z_erofs_lz4_prepare_destpages()
118 victim = erofs_allocpage(pagepool, in z_erofs_lz4_prepare_destpages()
120 set_page_private(victim, Z_EROFS_SHORTLIVED_PAGE); in z_erofs_lz4_prepare_destpages()
122 rq->out[i] = victim; in z_erofs_lz4_prepare_destpages()
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dzstd.c116 struct workspace *victim = container_of(pos, struct workspace, in zstd_reclaim_timer_fn() local
120 if (time_after(victim->last_used, reclaim_threshold)) in zstd_reclaim_timer_fn()
124 if (victim->req_level) in zstd_reclaim_timer_fn()
127 level = victim->level; in zstd_reclaim_timer_fn()
128 list_del(&victim->lru_list); in zstd_reclaim_timer_fn()
129 list_del(&victim->list); in zstd_reclaim_timer_fn()
130 zstd_free_workspace(&victim->list); in zstd_reclaim_timer_fn()
/OK3568_Linux_fs/kernel/fs/
H A Dlibfs.c272 struct dentry *victim = NULL, *child; in simple_recursive_removal() local
278 while ((child = find_next_child(this, victim)) == NULL) { in simple_recursive_removal()
284 victim = this; in simple_recursive_removal()
288 if (simple_positive(victim)) { in simple_recursive_removal()
289 d_invalidate(victim); // avoid lost mounts in simple_recursive_removal()
290 if (d_is_dir(victim)) in simple_recursive_removal()
291 fsnotify_rmdir(inode, victim); in simple_recursive_removal()
293 fsnotify_unlink(inode, victim); in simple_recursive_removal()
295 callback(victim); in simple_recursive_removal()
296 dput(victim); // unpin it in simple_recursive_removal()
[all …]
/OK3568_Linux_fs/kernel/drivers/dax/
H A Dbus.c438 struct device *victim; in delete_store() local
445 victim = device_find_child_by_name(dax_region->dev, buf); in delete_store()
446 if (!victim) in delete_store()
450 device_lock(victim); in delete_store()
451 dev_dax = to_dev_dax(victim); in delete_store()
452 if (victim->driver || dev_dax_size(dev_dax)) in delete_store()
464 if (dax_region->seed == victim) in delete_store()
466 if (dax_region->youngest == victim) in delete_store()
471 device_unlock(victim); in delete_store()
475 devm_release_action(dev, unregister_dev_dax, victim); in delete_store()
[all …]
/OK3568_Linux_fs/kernel/security/selinux/ss/
H A Dsidtab.c556 struct sidtab_str_cache *cache, *victim = NULL; in sidtab_sid2str_put() local
579 victim = container_of(s->cache_lru_list.prev, in sidtab_sid2str_put()
581 list_del(&victim->lru_member); in sidtab_sid2str_put()
582 rcu_assign_pointer(victim->parent->cache, NULL); in sidtab_sid2str_put()
595 kfree_rcu(victim, rcu_member); in sidtab_sid2str_put()

123