/kernel/linux/linux-5.10/mm/ |
D | oom_kill.c | 441 static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim) in dump_oom_summary() argument 448 mem_cgroup_print_oom_context(oc->memcg, victim); in dump_oom_summary() 449 pr_cont(",task=%s,pid=%d,uid=%d\n", victim->comm, victim->pid, in dump_oom_summary() 450 from_kuid(&init_user_ns, task_uid(victim))); in dump_oom_summary() 884 static void __oom_kill_process(struct task_struct *victim, const char *message) in __oom_kill_process() argument 890 p = find_lock_task_mm(victim); in __oom_kill_process() 893 message, task_pid_nr(victim), victim->comm); in __oom_kill_process() 894 put_task_struct(victim); in __oom_kill_process() 896 } else if (victim != p) { in __oom_kill_process() 898 put_task_struct(victim); in __oom_kill_process() [all …]
|
D | readahead.c | 68 struct page *victim; in read_cache_pages_invalidate_pages() local 71 victim = lru_to_page(pages); in read_cache_pages_invalidate_pages() 72 list_del(&victim->lru); in read_cache_pages_invalidate_pages() 73 read_cache_pages_invalidate_page(mapping, victim); in read_cache_pages_invalidate_pages()
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
D | urb.c | 814 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 …]
|
/kernel/linux/linux-5.10/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 | 639 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()
|
/kernel/linux/linux-5.10/fs/cachefiles/ |
D | namei.c | 869 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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
D | sched.c | 619 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 …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | rbtree.h | 64 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()
|
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()
|
/kernel/linux/common_modules/memory_security/src/ |
D | jit_process.c | 83 struct jit_process *victim = container_of(head, struct jit_process, head); in delete_process_jit_space() local 84 if (victim == NULL) in delete_process_jit_space() 88 rb_erase(&(victim->node), root); in delete_process_jit_space() 91 return victim; in delete_process_jit_space()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/erofs/ |
D | decompressor.c | 45 struct page *victim; in z_erofs_lz4_prepare_destpages() local 77 victim = availables[--top]; in z_erofs_lz4_prepare_destpages() 78 get_page(victim); in z_erofs_lz4_prepare_destpages() 80 victim = erofs_allocpage(pagepool, GFP_KERNEL); in z_erofs_lz4_prepare_destpages() 81 if (!victim) in z_erofs_lz4_prepare_destpages() 83 victim->mapping = Z_EROFS_MAPPING_STAGING; in z_erofs_lz4_prepare_destpages() 85 rq->out[i] = victim; in z_erofs_lz4_prepare_destpages()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | sdio_cis.c | 373 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() 408 struct sdio_func_tuple *tuple, *victim; in sdio_free_func_cis() local 413 victim = tuple; in sdio_free_func_cis() 415 kfree(victim); in sdio_free_func_cis()
|
/kernel/linux/linux-5.10/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 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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | local_storage.c | 57 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()
|
/kernel/linux/linux-5.10/init/ |
D | initramfs.c | 194 static __initdata char *victim; variable 200 victim += n; in eat() 212 collected = victim; in read_into() 236 memcpy(collect, victim, n); in do_collect() 289 while (byte_count && *victim == '\0') in do_reset() 371 if (xwrite(wfile, victim, body_len, &wfile_pos) != body_len) in do_copy() 383 if (xwrite(wfile, victim, byte_count, &wfile_pos) != byte_count) in do_copy() 417 victim = buf; in write_buffer()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | zstd.c | 116 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()
|
/kernel/linux/linux-5.10/fs/ |
D | libfs.c | 272 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 …]
|
/kernel/linux/linux-5.10/drivers/dax/ |
D | bus.c | 438 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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/lightnvm/ |
D | pblk-gc.c | 374 struct pblk_line *line, *victim; in pblk_gc_get_victim_line() local 377 victim = list_first_entry(group_list, struct pblk_line, list); in pblk_gc_get_victim_line() 383 victim = line; in pblk_gc_get_victim_line() 384 victim_vsc = le32_to_cpu(*victim->vsc); in pblk_gc_get_victim_line() 391 return victim; in pblk_gc_get_victim_line()
|