Lines Matching refs:qp
431 struct queue_pages *qp) in queue_pages_required() argument
434 unsigned long flags = qp->flags; in queue_pages_required()
436 return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); in queue_pages_required()
456 struct queue_pages *qp = walk->private; in queue_pages_pmd() local
469 if (!queue_pages_required(page, qp)) in queue_pages_pmd()
472 flags = qp->flags; in queue_pages_pmd()
476 migrate_page_add(page, qp->pagelist, flags)) { in queue_pages_pmd()
505 struct queue_pages *qp = walk->private; in queue_pages_pte_range() local
506 unsigned long flags = qp->flags; in queue_pages_pte_range()
536 if (!queue_pages_required(page, qp)) in queue_pages_pte_range()
550 if (migrate_page_add(page, qp->pagelist, flags)) in queue_pages_pte_range()
570 struct queue_pages *qp = walk->private; in queue_pages_hugetlb() local
571 unsigned long flags = (qp->flags & MPOL_MF_VALID); in queue_pages_hugetlb()
581 if (!queue_pages_required(page, qp)) in queue_pages_hugetlb()
608 if (isolate_hugetlb(page, qp->pagelist) && in queue_pages_hugetlb()
657 struct queue_pages *qp = walk->private; in queue_pages_test_walk() local
659 unsigned long flags = qp->flags; in queue_pages_test_walk()
664 if (!qp->first) { in queue_pages_test_walk()
665 qp->first = vma; in queue_pages_test_walk()
667 (qp->start < vma->vm_start)) in queue_pages_test_walk()
672 ((vma->vm_end < qp->end) && in queue_pages_test_walk()
729 struct queue_pages qp = { in queue_pages_range() local
738 err = walk_page_range(mm, start, end, &queue_pages_walk_ops, &qp); in queue_pages_range()
740 if (!qp.first) in queue_pages_range()