/linux-6.1.9/mm/ |
D | oom_kill.c | 440 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() 916 static void __oom_kill_process(struct task_struct *victim, const char *message) in __oom_kill_process() argument 922 p = find_lock_task_mm(victim); in __oom_kill_process() 925 message, task_pid_nr(victim), victim->comm); in __oom_kill_process() 926 put_task_struct(victim); in __oom_kill_process() 928 } else if (victim != p) { in __oom_kill_process() 930 put_task_struct(victim); in __oom_kill_process() [all …]
|
/linux-6.1.9/drivers/usb/core/ |
D | urb.c | 825 struct urb *victim; in usb_kill_anchored_urbs() local 831 victim = list_entry(anchor->urb_list.prev, in usb_kill_anchored_urbs() 834 usb_get_urb(victim); in usb_kill_anchored_urbs() 837 usb_kill_urb(victim); in usb_kill_anchored_urbs() 838 usb_put_urb(victim); in usb_kill_anchored_urbs() 863 struct urb *victim; in usb_poison_anchored_urbs() local 870 victim = list_entry(anchor->urb_list.prev, in usb_poison_anchored_urbs() 873 usb_get_urb(victim); in usb_poison_anchored_urbs() 876 usb_poison_urb(victim); in usb_poison_anchored_urbs() 877 usb_put_urb(victim); in usb_poison_anchored_urbs() [all …]
|
/linux-6.1.9/lib/ |
D | rbtree.c | 553 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 …]
|
D | btree.c | 635 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.1.9/arch/powerpc/kvm/ |
D | trace.h | 49 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,
|
D | e500_mmu.c | 39 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.1.9/fs/cachefiles/ |
D | namei.c | 748 struct dentry *victim; in cachefiles_lookup_for_cull() local 753 victim = lookup_one_len(filename, dir, strlen(filename)); 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-6.1.9/arch/powerpc/platforms/cell/spufs/ |
D | sched.c | 613 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.1.9/tools/lib/ |
D | rbtree.c | 545 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.1.9/kernel/ |
D | audit_tree.c | 569 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.1.9/drivers/mmc/core/ |
D | sdio_cis.c | 385 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() 426 struct sdio_func_tuple *tuple, *victim; in sdio_free_func_cis() local 431 victim = tuple; in sdio_free_func_cis() 433 kfree(victim); in sdio_free_func_cis()
|
/linux-6.1.9/include/linux/ |
D | rbtree.h | 54 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()
|
D | btree-128.h | 78 struct btree_head128 *victim, in btree_merge128() argument 81 return btree_merge(&target->h, &victim->h, &btree_geo128, gfp); in btree_merge128()
|
D | btree-type.h | 31 BTREE_TYPE_HEAD *victim, in BTREE_FN() 34 return btree_merge(&target->h, &victim->h, BTREE_TYPE_GEO, gfp); in BTREE_FN()
|
/linux-6.1.9/fs/erofs/ |
D | decompressor.c | 80 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.1.9/tools/include/linux/ |
D | rbtree.h | 63 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.1.9/init/ |
D | initramfs.c | 230 static __initdata char *victim; variable 236 victim += n; in eat() 248 collected = victim; in read_into() 272 memcpy(collect, victim, n); in do_collect() 328 while (byte_count && *victim == '\0') in do_reset() 410 if (xwrite(wfile, victim, body_len, &wfile_pos) != body_len) in do_copy() 421 if (xwrite(wfile, victim, byte_count, &wfile_pos) != byte_count) in do_copy() 455 victim = buf; in write_buffer()
|
/linux-6.1.9/fs/btrfs/ |
D | zstd.c | 120 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.1.9/fs/ |
D | libfs.c | 274 struct dentry *victim = NULL, *child; in simple_recursive_removal() local 280 while ((child = find_next_child(this, victim)) == NULL) { in simple_recursive_removal() 286 victim = this; in simple_recursive_removal() 290 if (simple_positive(victim)) { in simple_recursive_removal() 291 d_invalidate(victim); // avoid lost mounts in simple_recursive_removal() 292 if (d_is_dir(victim)) in simple_recursive_removal() 293 fsnotify_rmdir(inode, victim); in simple_recursive_removal() 295 fsnotify_unlink(inode, victim); in simple_recursive_removal() 297 callback(victim); in simple_recursive_removal() 298 dput(victim); // unpin it in simple_recursive_removal() [all …]
|
D | dcache.c | 1548 struct dentry *victim; member 1593 data->victim = dentry; in select_collect2() 1635 data.victim = NULL; in shrink_dcache_parent() 1637 if (data.victim) { in shrink_dcache_parent() 1639 spin_lock(&data.victim->d_lock); in shrink_dcache_parent() 1640 if (!shrink_lock_dentry(data.victim)) { in shrink_dcache_parent() 1641 spin_unlock(&data.victim->d_lock); in shrink_dcache_parent() 1645 parent = data.victim->d_parent; in shrink_dcache_parent() 1646 if (parent != data.victim) in shrink_dcache_parent() 1648 __dentry_kill(data.victim); in shrink_dcache_parent() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | local_storage.c | 54 int BPF_PROG(unlink_hook, struct inode *dir, struct dentry *victim) in BPF_PROG() argument 67 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG()
|
/linux-6.1.9/drivers/dax/ |
D | bus.c | 467 struct device *victim; in delete_store() local 474 victim = device_find_child_by_name(dax_region->dev, buf); in delete_store() 475 if (!victim) in delete_store() 479 device_lock(victim); in delete_store() 480 dev_dax = to_dev_dax(victim); in delete_store() 481 if (victim->driver || dev_dax_size(dev_dax)) in delete_store() 493 if (dax_region->seed == victim) in delete_store() 495 if (dax_region->youngest == victim) in delete_store() 500 device_unlock(victim); in delete_store() 504 devm_release_action(dev, unregister_dev_dax, victim); in delete_store() [all …]
|
/linux-6.1.9/security/selinux/ss/ |
D | sidtab.c | 556 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()
|
/linux-6.1.9/drivers/cxl/ |
D | acpi.c | 347 struct resource *victim = cxl_get_public_resource(res); in remove_cxl_resources() local 352 if (victim) { in remove_cxl_resources() 353 remove_resource(victim); in remove_cxl_resources() 354 kfree(victim); in remove_cxl_resources()
|
/linux-6.1.9/drivers/mtd/ubi/ |
D | fastmap-wl.c | 29 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()
|