Home
last modified time | relevance | path

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

123

/linux/mm/
H A Doom_kill.c447 static void dump_oom_victim(struct oom_control *oc, struct task_struct *victim) in dump_oom_victim() argument
454 mem_cgroup_print_oom_context(oc->memcg, victim); in dump_oom_victim()
455 pr_cont(",task=%s,pid=%d,uid=%d\n", victim->comm, victim->pid, in dump_oom_victim()
456 from_kuid(&init_user_ns, task_uid(victim))); in dump_oom_victim()
927 static void __oom_kill_process(struct task_struct *victim, const char *message) in __oom_kill_process() argument
933 p = find_lock_task_mm(victim); in __oom_kill_process()
936 message, task_pid_nr(victim), victim->comm); in __oom_kill_process()
937 put_task_struct(victim); in __oom_kill_process()
939 } else if (victim != p) { in __oom_kill_process()
941 put_task_struct(victim); in __oom_kill_process()
[all …]
/linux/drivers/usb/core/
H A Durb.c815 struct urb *victim; in usb_kill_anchored_urbs() local
821 victim = list_entry(anchor->urb_list.prev, in usb_kill_anchored_urbs()
824 usb_get_urb(victim); in usb_kill_anchored_urbs()
827 usb_kill_urb(victim); in usb_kill_anchored_urbs()
828 usb_put_urb(victim); in usb_kill_anchored_urbs()
853 struct urb *victim; in usb_poison_anchored_urbs() local
860 victim = list_entry(anchor->urb_list.prev, in usb_poison_anchored_urbs()
863 usb_get_urb(victim); in usb_poison_anchored_urbs()
866 usb_poison_urb(victim); in usb_poison_anchored_urbs()
867 usb_put_urb(victim); in usb_poison_anchored_urbs()
[all …]
/linux/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.c634 int btree_merge(struct btree_head *target, struct btree_head *victim, in btree_merge() argument
642 BUG_ON(target == victim); in btree_merge()
646 target->node = victim->node; in btree_merge()
647 target->height = victim->height; in btree_merge()
648 __btree_init(victim); in btree_merge()
656 val = btree_last(victim, geo, key); in btree_merge()
665 btree_remove(victim, geo, dup); in btree_merge()
/linux/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()
/linux/fs/cachefiles/
H A Dnamei.c748 struct dentry *victim; in cachefiles_lookup_for_cull() local
753 victim = lookup_one(&nop_mnt_idmap, &QSTR(filename), dir); in cachefiles_lookup_for_cull()
754 if (IS_ERR(victim)) in cachefiles_lookup_for_cull()
756 if (d_is_negative(victim)) in cachefiles_lookup_for_cull()
758 if (d_inode(victim)->i_flags & S_KERNEL_FILE) in cachefiles_lookup_for_cull()
760 return victim; in cachefiles_lookup_for_cull()
766 dput(victim); in cachefiles_lookup_for_cull()
771 ret = PTR_ERR(victim); in cachefiles_lookup_for_cull()
792 struct dentry *victim; in cachefiles_cull() local
798 victim = cachefiles_lookup_for_cull(cache, dir, filename); in cachefiles_cull()
[all …]
/linux/arch/powerpc/platforms/cell/spufs/
H A Dsched.c613 struct spu_context *victim = NULL; in find_victim() local
639 (!victim || tmp->prio > victim->prio)) { in find_victim()
640 victim = spu->ctx; in find_victim()
643 if (victim) in find_victim()
644 get_spu_context(victim); in find_victim()
647 if (victim) { in find_victim()
658 if (!mutex_trylock(&victim->state_mutex)) { in find_victim()
659 put_spu_context(victim); in find_victim()
660 victim = NULL; in find_victim()
664 spu = victim->spu; in find_victim()
[all …]
/linux/drivers/md/dm-vdo/
H A Dint-map.c676 struct bucket *victim = search_hop_list(bucket, key, &previous); in vdo_int_map_remove() local
678 if (victim == NULL) { in vdo_int_map_remove()
687 value = victim->value; in vdo_int_map_remove()
688 victim->value = NULL; in vdo_int_map_remove()
689 victim->key = 0; in vdo_int_map_remove()
694 bucket->first_hop = victim->next_hop; in vdo_int_map_remove()
696 previous->next_hop = victim->next_hop; in vdo_int_map_remove()
699 victim->next_hop = NULL_HOP_OFFSET; in vdo_int_map_remove()
/linux/fs/erofs/
H A Ddecompressor_crypto.c106 struct page *victim; in z_erofs_crypto_decompress() local
109 victim = __erofs_allocpage(pgpl, rq->gfp, true); in z_erofs_crypto_decompress()
110 if (!victim) { in z_erofs_crypto_decompress()
114 set_page_private(victim, Z_EROFS_SHORTLIVED_PAGE); in z_erofs_crypto_decompress()
115 rq->out[i] = victim; in z_erofs_crypto_decompress()
H A Ddecompressor.c64 struct page *victim; in z_erofs_lz4_prepare_dstpages() local
96 victim = availables[--top]; in z_erofs_lz4_prepare_dstpages()
98 victim = __erofs_allocpage(pagepool, rq->gfp, true); in z_erofs_lz4_prepare_dstpages()
99 if (!victim) in z_erofs_lz4_prepare_dstpages()
101 set_page_private(victim, Z_EROFS_SHORTLIVED_PAGE); in z_erofs_lz4_prepare_dstpages()
103 rq->out[i] = victim; in z_erofs_lz4_prepare_dstpages()
/linux/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()
/linux/kernel/
H A Daudit_tree.c571 static void prune_tree_chunks(struct audit_tree *victim, bool tagged) in prune_tree_chunks() argument
574 while (!list_empty(&victim->chunks)) { in prune_tree_chunks()
579 p = list_first_entry(&victim->chunks, struct audit_node, list); in prune_tree_chunks()
603 static void prune_one(struct audit_tree *victim) in prune_one() argument
605 prune_tree_chunks(victim, false); in prune_one()
606 put_tree(victim); in prune_one()
771 struct audit_tree *victim; in prune_tree_thread() local
773 victim = list_entry(prune_list.next, in prune_tree_thread()
775 list_del_init(&victim->list); in prune_tree_thread()
779 prune_one(victim); in prune_tree_thread()
[all …]
/linux/drivers/mmc/core/
H A Dsdio_cis.c385 struct sdio_func_tuple *tuple, *victim; in sdio_free_common_cis() local
390 victim = tuple; in sdio_free_common_cis()
392 kfree(victim); in sdio_free_common_cis()
420 struct sdio_func_tuple *tuple, *victim; in sdio_free_func_cis() local
425 victim = tuple; in sdio_free_func_cis()
427 kfree(victim); in sdio_free_func_cis()
/linux/include/linux/
H A Drbtree.h54 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new,
56 extern void rb_replace_node_rcu(struct rb_node *victim, struct rb_node *new,
131 static inline void rb_replace_node_cached(struct rb_node *victim, in rb_replace_node_cached() argument
135 if (root->rb_leftmost == victim) in rb_replace_node_cached()
137 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()
/linux/init/
H A Dinitramfs.c228 static __initdata char *victim; variable
234 victim += n; in eat()
246 collected = victim; in read_into()
270 memcpy(collect, victim, n); in do_collect()
326 while (byte_count && *victim == '\0') in do_reset()
417 if (xwrite(wfile, victim, body_len, &wfile_pos) != body_len) in do_copy()
428 if (xwrite(wfile, victim, byte_count, &wfile_pos) != byte_count) in do_copy()
468 victim = buf; in write_buffer()
/linux/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()
/linux/drivers/firmware/arm_scmi/
H A Dbus.c170 struct scmi_requested_dev *victim, *tmp; in scmi_protocol_device_unrequest() local
172 list_for_each_entry_safe(victim, tmp, phead, node) { in scmi_protocol_device_unrequest()
173 if (!strcmp(victim->id_table->name, id_table->name)) { in scmi_protocol_device_unrequest()
174 list_del(&victim->node); in scmi_protocol_device_unrequest()
179 (void *)victim->id_table); in scmi_protocol_device_unrequest()
180 kfree(victim); in scmi_protocol_device_unrequest()
/linux/security/
H A Dinode.c284 static void remove_one(struct dentry *victim) in remove_one() argument
286 if (victim->d_parent == victim->d_sb->s_root) in remove_one()
/linux/fs/
H A Ddcache.c1110 static inline void shrink_kill(struct dentry *victim) in shrink_kill() argument
1114 victim = __dentry_kill(victim); in shrink_kill()
1116 } while (victim && lock_for_kill(victim)); in shrink_kill()
1118 if (victim) in shrink_kill()
1119 spin_unlock(&victim->d_lock); in shrink_kill()
1482 struct dentry *victim; member
1525 data->victim = dentry; in select_collect2()
1563 data.victim = NULL; in shrink_dcache_parent()
1565 if (data.victim) { in shrink_dcache_parent()
1566 spin_lock(&data.victim->d_lock); in shrink_dcache_parent()
[all …]
/linux/fs/btrfs/
H A Dzstd.c125 struct workspace *victim = container_of(pos, struct workspace, in zstd_reclaim_timer_fn() local
129 if (time_after(victim->last_used, reclaim_threshold)) in zstd_reclaim_timer_fn()
133 if (victim->req_level) in zstd_reclaim_timer_fn()
136 level = victim->level; in zstd_reclaim_timer_fn()
137 list_del(&victim->lru_list); in zstd_reclaim_timer_fn()
138 list_del(&victim->list); in zstd_reclaim_timer_fn()
139 zstd_free_workspace(&victim->list); in zstd_reclaim_timer_fn()
/linux/security/selinux/ss/
H A Dsidtab.c566 struct sidtab_str_cache *cache, *victim = NULL; in sidtab_sid2str_put() local
589 victim = container_of(s->cache_lru_list.prev, in sidtab_sid2str_put()
591 list_del(&victim->lru_member); in sidtab_sid2str_put()
592 rcu_assign_pointer(victim->parent->cache, NULL); in sidtab_sid2str_put()
605 kfree_rcu(victim, rcu_member); in sidtab_sid2str_put()
/linux/drivers/dax/
H A Dbus.c540 struct device *victim; in delete_store() local
547 victim = device_find_child_by_name(dax_region->dev, buf); in delete_store()
548 if (!victim) in delete_store()
552 device_lock(victim); in delete_store()
553 dev_dax = to_dev_dax(victim); in delete_store()
555 if (victim->driver || dev_dax_size(dev_dax)) in delete_store()
567 if (dax_region->seed == victim) in delete_store()
569 if (dax_region->youngest == victim) in delete_store()
575 device_unlock(victim); in delete_store()
579 devm_release_action(dev, unregister_dev_dax, victim); in delete_store()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dlocal_storage.c62 int BPF_PROG(unlink_hook, struct inode *dir, struct dentry *victim) in BPF_PROG() argument
84 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG()

123