Home
last modified time | relevance | path

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

123

/linux-6.6.21/mm/
Doom_kill.c440 static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim) in dump_oom_summary() argument
447 mem_cgroup_print_oom_context(oc->memcg, victim); in dump_oom_summary()
448 pr_cont(",task=%s,pid=%d,uid=%d\n", victim->comm, victim->pid, in dump_oom_summary()
449 from_kuid(&init_user_ns, task_uid(victim))); in dump_oom_summary()
914 static void __oom_kill_process(struct task_struct *victim, const char *message) in __oom_kill_process() argument
920 p = find_lock_task_mm(victim); in __oom_kill_process()
923 message, task_pid_nr(victim), victim->comm); in __oom_kill_process()
924 put_task_struct(victim); in __oom_kill_process()
926 } else if (victim != p) { in __oom_kill_process()
928 put_task_struct(victim); in __oom_kill_process()
[all …]
/linux-6.6.21/drivers/usb/core/
Durb.c810 struct urb *victim; in usb_kill_anchored_urbs() local
816 victim = list_entry(anchor->urb_list.prev, in usb_kill_anchored_urbs()
819 usb_get_urb(victim); in usb_kill_anchored_urbs()
822 usb_kill_urb(victim); in usb_kill_anchored_urbs()
823 usb_put_urb(victim); in usb_kill_anchored_urbs()
848 struct urb *victim; in usb_poison_anchored_urbs() local
855 victim = list_entry(anchor->urb_list.prev, in usb_poison_anchored_urbs()
858 usb_get_urb(victim); in usb_poison_anchored_urbs()
861 usb_poison_urb(victim); in usb_poison_anchored_urbs()
862 usb_put_urb(victim); in usb_poison_anchored_urbs()
[all …]
/linux-6.6.21/lib/
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 …]
Dbtree.c635 int btree_merge(struct btree_head *target, struct btree_head *victim, in btree_merge() argument
643 BUG_ON(target == victim); in btree_merge()
647 target->node = victim->node; in btree_merge()
648 target->height = victim->height; in btree_merge()
649 __btree_init(victim); in btree_merge()
657 if (!btree_last(victim, geo, key)) in btree_merge()
659 val = btree_lookup(victim, geo, key); in btree_merge()
666 btree_remove(victim, geo, dup); in btree_merge()
/linux-6.6.21/arch/powerpc/kvm/
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,
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-6.6.21/fs/cachefiles/
Dnamei.c751 struct dentry *victim; in cachefiles_lookup_for_cull() local
756 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_lookup_for_cull()
757 if (IS_ERR(victim)) in cachefiles_lookup_for_cull()
759 if (d_is_negative(victim)) in cachefiles_lookup_for_cull()
761 if (d_inode(victim)->i_flags & S_KERNEL_FILE) in cachefiles_lookup_for_cull()
763 return victim; in cachefiles_lookup_for_cull()
769 dput(victim); in cachefiles_lookup_for_cull()
774 ret = PTR_ERR(victim); in cachefiles_lookup_for_cull()
795 struct dentry *victim; in cachefiles_cull() local
801 victim = cachefiles_lookup_for_cull(cache, dir, filename); in cachefiles_cull()
[all …]
/linux-6.6.21/arch/powerpc/platforms/cell/spufs/
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-6.6.21/tools/lib/
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-6.6.21/kernel/
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 audit_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 …]
/linux-6.6.21/drivers/mmc/core/
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-6.6.21/include/linux/
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()
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()
Dbtree-type.h31 BTREE_TYPE_HEAD *victim, in BTREE_FN()
34 return btree_merge(&target->h, &victim->h, BTREE_TYPE_GEO, gfp); in BTREE_FN()
/linux-6.6.21/drivers/firmware/arm_scmi/
Dbus.c164 struct scmi_requested_dev *victim, *tmp; in scmi_protocol_device_unrequest() local
166 list_for_each_entry_safe(victim, tmp, phead, node) { in scmi_protocol_device_unrequest()
167 if (!strcmp(victim->id_table->name, id_table->name)) { in scmi_protocol_device_unrequest()
168 list_del(&victim->node); in scmi_protocol_device_unrequest()
173 (void *)victim->id_table); in scmi_protocol_device_unrequest()
174 kfree(victim); in scmi_protocol_device_unrequest()
/linux-6.6.21/tools/include/linux/
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-6.6.21/fs/erofs/
Ddecompressor.c80 struct page *victim; in z_erofs_lz4_prepare_dstpages() local
112 victim = availables[--top]; in z_erofs_lz4_prepare_dstpages()
113 get_page(victim); in z_erofs_lz4_prepare_dstpages()
115 victim = erofs_allocpage(pagepool, in z_erofs_lz4_prepare_dstpages()
117 set_page_private(victim, Z_EROFS_SHORTLIVED_PAGE); in z_erofs_lz4_prepare_dstpages()
119 rq->out[i] = victim; in z_erofs_lz4_prepare_dstpages()
/linux-6.6.21/init/
Dinitramfs.c224 static __initdata char *victim; variable
230 victim += n; in eat()
242 collected = victim; in read_into()
266 memcpy(collect, victim, n); in do_collect()
322 while (byte_count && *victim == '\0') in do_reset()
404 if (xwrite(wfile, victim, body_len, &wfile_pos) != body_len) in do_copy()
415 if (xwrite(wfile, victim, byte_count, &wfile_pos) != byte_count) in do_copy()
449 victim = buf; in write_buffer()
/linux-6.6.21/fs/btrfs/
Dzstd.c120 struct workspace *victim = container_of(pos, struct workspace, in zstd_reclaim_timer_fn() local
124 if (time_after(victim->last_used, reclaim_threshold)) in zstd_reclaim_timer_fn()
128 if (victim->req_level) in zstd_reclaim_timer_fn()
131 level = victim->level; in zstd_reclaim_timer_fn()
132 list_del(&victim->lru_list); in zstd_reclaim_timer_fn()
133 list_del(&victim->list); in zstd_reclaim_timer_fn()
134 zstd_free_workspace(&victim->list); in zstd_reclaim_timer_fn()
/linux-6.6.21/drivers/dax/
Dbus.c510 struct device *victim; in delete_store() local
517 victim = device_find_child_by_name(dax_region->dev, buf); in delete_store()
518 if (!victim) in delete_store()
522 device_lock(victim); in delete_store()
523 dev_dax = to_dev_dax(victim); in delete_store()
524 if (victim->driver || dev_dax_size(dev_dax)) in delete_store()
536 if (dax_region->seed == victim) in delete_store()
538 if (dax_region->youngest == victim) in delete_store()
543 device_unlock(victim); in delete_store()
547 devm_release_action(dev, unregister_dev_dax, victim); in delete_store()
[all …]
/linux-6.6.21/security/selinux/ss/
Dsidtab.c561 struct sidtab_str_cache *cache, *victim = NULL; in sidtab_sid2str_put() local
584 victim = container_of(s->cache_lru_list.prev, in sidtab_sid2str_put()
586 list_del(&victim->lru_member); in sidtab_sid2str_put()
587 rcu_assign_pointer(victim->parent->cache, NULL); in sidtab_sid2str_put()
600 kfree_rcu(victim, rcu_member); in sidtab_sid2str_put()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
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()
/linux-6.6.21/fs/
Dlibfs.c525 struct dentry *victim = NULL, *child; in simple_recursive_removal() local
531 while ((child = find_next_child(this, victim)) == NULL) { in simple_recursive_removal()
537 victim = this; in simple_recursive_removal()
541 if (simple_positive(victim)) { in simple_recursive_removal()
542 d_invalidate(victim); // avoid lost mounts in simple_recursive_removal()
543 if (d_is_dir(victim)) in simple_recursive_removal()
544 fsnotify_rmdir(inode, victim); in simple_recursive_removal()
546 fsnotify_unlink(inode, victim); in simple_recursive_removal()
548 callback(victim); in simple_recursive_removal()
549 dput(victim); // unpin it in simple_recursive_removal()
[all …]
Ddcache.c1549 struct dentry *victim; member
1594 data->victim = dentry; in select_collect2()
1636 data.victim = NULL; in shrink_dcache_parent()
1638 if (data.victim) { in shrink_dcache_parent()
1640 spin_lock(&data.victim->d_lock); in shrink_dcache_parent()
1641 if (!shrink_lock_dentry(data.victim)) { in shrink_dcache_parent()
1642 spin_unlock(&data.victim->d_lock); in shrink_dcache_parent()
1646 parent = data.victim->d_parent; in shrink_dcache_parent()
1647 if (parent != data.victim) in shrink_dcache_parent()
1649 __dentry_kill(data.victim); in shrink_dcache_parent()
[all …]
/linux-6.6.21/drivers/mtd/ubi/
Dfastmap-wl.c29 struct ubi_wl_entry *e, *victim = NULL; in find_anchor_wl_entry() local
34 victim = e; in find_anchor_wl_entry()
39 return victim; in find_anchor_wl_entry()

123