Lines Matching refs:to_kill
338 struct to_kill { struct
350 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) in kill_proc() argument
449 struct vm_area_struct *vma, struct list_head *to_kill, in __add_to_kill() argument
452 struct to_kill *tk; in __add_to_kill()
454 tk = kmalloc(sizeof(struct to_kill), GFP_ATOMIC); in __add_to_kill()
486 list_add_tail(&tk->nd, to_kill); in __add_to_kill()
490 struct vm_area_struct *vma, struct list_head *to_kill, in add_to_kill_anon_file() argument
495 __add_to_kill(tsk, p, vma, to_kill, addr); in add_to_kill_anon_file()
499 static bool task_in_to_kill_list(struct list_head *to_kill, in task_in_to_kill_list() argument
502 struct to_kill *tk, *next; in task_in_to_kill_list()
504 list_for_each_entry_safe(tk, next, to_kill, nd) { in task_in_to_kill_list()
513 struct vm_area_struct *vma, struct list_head *to_kill, in add_to_kill_ksm() argument
516 if (!task_in_to_kill_list(to_kill, tsk)) in add_to_kill_ksm()
517 __add_to_kill(tsk, p, vma, to_kill, addr); in add_to_kill_ksm()
526 static void kill_procs(struct list_head *to_kill, int forcekill, in kill_procs() argument
529 struct to_kill *tk, *next; in kill_procs()
531 list_for_each_entry_safe(tk, next, to_kill, nd) { in kill_procs()
610 const struct page *page, struct list_head *to_kill, in collect_procs_anon() argument
637 add_to_kill_anon_file(t, page, vma, to_kill, addr); in collect_procs_anon()
648 const struct page *page, struct list_head *to_kill, in collect_procs_file() argument
677 add_to_kill_anon_file(t, page, vma, to_kill, addr); in collect_procs_file()
687 struct list_head *to_kill, pgoff_t pgoff) in add_to_kill_fsdax() argument
690 __add_to_kill(tsk, p, vma, to_kill, addr); in add_to_kill_fsdax()
698 struct list_head *to_kill, bool pre_remove) in collect_procs_fsdax() argument
719 add_to_kill_fsdax(t, page, vma, to_kill, pgoff); in collect_procs_fsdax()
744 struct to_kill tk;
749 static void set_to_kill(struct to_kill *tk, unsigned long addr, short shift) in set_to_kill()
756 unsigned long poisoned_pfn, struct to_kill *tk) in check_hwpoisoned_entry()
1733 static void unmap_and_kill(struct list_head *to_kill, unsigned long pfn, in unmap_and_kill() argument
1736 struct to_kill *tk; in unmap_and_kill()
1739 list_for_each_entry(tk, to_kill, nd) in unmap_and_kill()
1755 kill_procs(to_kill, flags & MF_MUST_KILL, pfn, flags); in unmap_and_kill()
1771 LIST_HEAD(to_kill); in mf_generic_kill_procs()
1817 collect_procs(folio, &folio->page, &to_kill, true); in mf_generic_kill_procs()
1819 unmap_and_kill(&to_kill, pfn, folio->mapping, folio->index, flags); in mf_generic_kill_procs()
1836 LIST_HEAD(to_kill); in mf_dax_kill_procs()
1859 collect_procs_fsdax(page, mapping, index, &to_kill, pre_remove); in mf_dax_kill_procs()
1860 unmap_and_kill(&to_kill, page_to_pfn(page), mapping, in mf_dax_kill_procs()