Lines Matching defs:nr_pages

1529 	int rc, nr_pages;
1539 nr_pages = folio_nr_pages(folio);
1552 stats->nr_failed_pages += nr_pages;
1574 stats->nr_failed_pages += nr_pages + nr_retry_pages;
1578 nr_retry_pages += nr_pages;
1581 stats->nr_succeeded += nr_pages;
1591 stats->nr_failed_pages += nr_pages;
1629 int rc, rc_saved = 0, nr_pages;
1644 nr_pages = folio_nr_pages(folio);
1665 stats->nr_failed_pages += nr_pages;
1705 nr_retry_pages += nr_pages;
1713 stats->nr_failed_pages += nr_pages + nr_retry_pages;
1724 nr_retry_pages += nr_pages;
1727 stats->nr_succeeded += nr_pages;
1743 stats->nr_failed_pages += nr_pages;
1765 nr_pages = folio_nr_pages(folio);
1782 nr_retry_pages += nr_pages;
1785 stats->nr_succeeded += nr_pages;
1791 stats->nr_failed_pages += nr_pages;
1900 int nr_pages;
1917 nr_pages = 0;
1925 nr_pages += folio_nr_pages(folio);
1926 if (nr_pages >= NR_MAX_BATCHED_MIGRATION)
1929 if (nr_pages >= NR_MAX_BATCHED_MIGRATION)
2141 int start, int i, unsigned long nr_pages)
2155 * nr_pages that have not been attempted as
2159 err += nr_pages - i;
2170 unsigned long nr_pages,
2183 for (i = start = 0; i < nr_pages; i++) {
2217 &pagelist, status, start, i, nr_pages);
2252 status, start, i, nr_pages);
2264 status, start, i, nr_pages);
2275 static void do_pages_stat_array(struct mm_struct *mm, unsigned long nr_pages,
2282 for (i = 0; i < nr_pages; i++) {
2338 static int do_pages_stat(struct mm_struct *mm, unsigned long nr_pages,
2346 while (nr_pages) {
2347 unsigned long chunk_nr = min(nr_pages, DO_PAGES_STAT_CHUNK_NR);
2366 nr_pages -= chunk_nr;
2368 return nr_pages ? -EFAULT : 0;
2422 static int kernel_move_pages(pid_t pid, unsigned long nr_pages,
2443 err = do_pages_move(mm, task_nodes, nr_pages, pages,
2446 err = do_pages_stat(mm, nr_pages, pages, status);
2452 SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages,
2457 return kernel_move_pages(pid, nr_pages, pages, nodes, status, flags);
2506 int nr_pages = thp_nr_pages(page);
2516 if (!migrate_balanced_pgdat(pgdat, nr_pages)) {
2541 nr_pages);
2565 int nr_pages = thp_nr_pages(page);
2594 page_is_file_lru(page), -nr_pages);