Lines Matching defs:nr_pages
362 unsigned long nr_pages;
389 unsigned long nr_pages,
400 async_extent->nr_pages = nr_pages;
485 unsigned long nr_pages;
512 nr_pages = (end >> PAGE_SHIFT) - (start >> PAGE_SHIFT) + 1;
514 nr_pages = min_t(unsigned long, nr_pages,
552 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_NOFS);
555 nr_pages = 0;
586 &nr_pages,
592 struct page *page = pages[nr_pages - 1];
656 for (i = 0; i < nr_pages; i++) {
689 total_compressed, pages, nr_pages,
706 for (i = 0; i < nr_pages; i++) {
713 nr_pages = 0;
751 for (i = 0; i < async_extent->nr_pages; i++) {
756 async_extent->nr_pages = 0;
893 async_extent->nr_pages,
1199 unsigned long nr_pages;
1201 nr_pages = (async_chunk->end - async_chunk->start + PAGE_SIZE) >>
1214 if (atomic_sub_return(nr_pages, &fs_info->async_delalloc_pages) <
1246 unsigned long nr_pages;
1339 nr_pages = DIV_ROUND_UP(cur_end - start, PAGE_SIZE);
1340 atomic_add(nr_pages, &fs_info->async_delalloc_pages);
1344 *nr_written += nr_pages;
10104 unsigned long nr_pages;
10111 unsigned long nr_pages;
10121 if (bsi->nr_pages >= sis->max)
10124 max_pages = sis->max - bsi->nr_pages;
10131 nr_pages = next_ppage - first_ppage;
10132 nr_pages = min(nr_pages, max_pages);
10142 ret = add_swap_extent(sis, bsi->nr_pages, nr_pages, first_ppage);
10146 bsi->nr_pages += nr_pages;
10405 sis->max = bsi.nr_pages;
10406 sis->pages = bsi.nr_pages - 1;
10407 sis->highest_bit = bsi.nr_pages - 1;