Lines Matching defs:to_kill
316 struct to_kill {
328 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags)
432 struct vm_area_struct *vma, struct list_head *to_kill,
435 struct to_kill *tk;
437 tk = kmalloc(sizeof(struct to_kill), GFP_ATOMIC);
471 list_add_tail(&tk->nd, to_kill);
476 struct list_head *to_kill)
478 __add_to_kill(tsk, p, vma, to_kill, 0, FSDAX_INVALID_PGOFF);
482 static bool task_in_to_kill_list(struct list_head *to_kill,
485 struct to_kill *tk, *next;
487 list_for_each_entry_safe(tk, next, to_kill, nd) {
495 struct vm_area_struct *vma, struct list_head *to_kill,
498 if (!task_in_to_kill_list(to_kill, tsk))
499 __add_to_kill(tsk, p, vma, to_kill, ksm_addr, FSDAX_INVALID_PGOFF);
510 static void kill_procs(struct list_head *to_kill, int forcekill, bool fail,
513 struct to_kill *tk, *next;
515 list_for_each_entry_safe(tk, next, to_kill, nd) {
599 struct list_head *to_kill, int force_early)
625 add_to_kill_anon_file(t, page, vma, to_kill);
636 struct list_head *to_kill, int force_early)
661 add_to_kill_anon_file(t, page, vma, to_kill);
671 struct list_head *to_kill, pgoff_t pgoff)
673 __add_to_kill(tsk, p, vma, to_kill, 0, pgoff);
681 struct list_head *to_kill)
695 add_to_kill_fsdax(t, page, vma, to_kill, pgoff);
720 struct to_kill tk;
725 static void set_to_kill(struct to_kill *tk, unsigned long addr, short shift)
732 unsigned long poisoned_pfn, struct to_kill *tk)
1690 static void unmap_and_kill(struct list_head *to_kill, unsigned long pfn,
1693 struct to_kill *tk;
1696 list_for_each_entry(tk, to_kill, nd)
1712 kill_procs(to_kill, flags & MF_MUST_KILL, false, pfn, flags);
1728 LIST_HEAD(to_kill);
1774 collect_procs(folio, &folio->page, &to_kill, true);
1776 unmap_and_kill(&to_kill, pfn, folio->mapping, folio->index, flags);
1793 LIST_HEAD(to_kill);
1810 collect_procs_fsdax(page, mapping, index, &to_kill);
1811 unmap_and_kill(&to_kill, page_to_pfn(page), mapping,