Lines Matching refs:to_kill
316 struct to_kill { struct
328 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) in kill_proc() argument
432 struct vm_area_struct *vma, struct list_head *to_kill, in __add_to_kill() argument
435 struct to_kill *tk; in __add_to_kill()
437 tk = kmalloc(sizeof(struct to_kill), GFP_ATOMIC); in __add_to_kill()
471 list_add_tail(&tk->nd, to_kill); in __add_to_kill()
476 struct list_head *to_kill) in add_to_kill_anon_file() argument
478 __add_to_kill(tsk, p, vma, to_kill, 0, FSDAX_INVALID_PGOFF); in add_to_kill_anon_file()
482 static bool task_in_to_kill_list(struct list_head *to_kill, in task_in_to_kill_list() argument
485 struct to_kill *tk, *next; in task_in_to_kill_list()
487 list_for_each_entry_safe(tk, next, to_kill, nd) { in task_in_to_kill_list()
495 struct vm_area_struct *vma, struct list_head *to_kill, in add_to_kill_ksm() argument
498 if (!task_in_to_kill_list(to_kill, tsk)) in add_to_kill_ksm()
499 __add_to_kill(tsk, p, vma, to_kill, ksm_addr, FSDAX_INVALID_PGOFF); in add_to_kill_ksm()
510 static void kill_procs(struct list_head *to_kill, int forcekill, bool fail, in kill_procs() argument
513 struct to_kill *tk, *next; in kill_procs()
515 list_for_each_entry_safe(tk, next, to_kill, nd) { in kill_procs()
598 static void collect_procs_anon(struct page *page, struct list_head *to_kill, in collect_procs_anon() argument
626 add_to_kill_anon_file(t, page, vma, to_kill); in collect_procs_anon()
636 static void collect_procs_file(struct page *page, struct list_head *to_kill, in collect_procs_file() argument
662 add_to_kill_anon_file(t, page, vma, to_kill); in collect_procs_file()
672 struct list_head *to_kill, pgoff_t pgoff) in add_to_kill_fsdax() argument
674 __add_to_kill(tsk, p, vma, to_kill, 0, pgoff); in add_to_kill_fsdax()
682 struct list_head *to_kill) in collect_procs_fsdax() argument
696 add_to_kill_fsdax(t, page, vma, to_kill, pgoff); in collect_procs_fsdax()
721 struct to_kill tk;
726 static void set_to_kill(struct to_kill *tk, unsigned long addr, short shift) in set_to_kill()
733 unsigned long poisoned_pfn, struct to_kill *tk) in check_hwpoisoned_entry()
1691 static void unmap_and_kill(struct list_head *to_kill, unsigned long pfn, in unmap_and_kill() argument
1694 struct to_kill *tk; in unmap_and_kill()
1697 list_for_each_entry(tk, to_kill, nd) in unmap_and_kill()
1713 kill_procs(to_kill, flags & MF_MUST_KILL, false, pfn, flags); in unmap_and_kill()
1720 LIST_HEAD(to_kill); in mf_generic_kill_procs()
1772 collect_procs(page, &to_kill, true); in mf_generic_kill_procs()
1774 unmap_and_kill(&to_kill, pfn, page->mapping, page->index, flags); in mf_generic_kill_procs()
1791 LIST_HEAD(to_kill); in mf_dax_kill_procs()
1808 collect_procs_fsdax(page, mapping, index, &to_kill); in mf_dax_kill_procs()
1809 unmap_and_kill(&to_kill, page_to_pfn(page), mapping, in mf_dax_kill_procs()