Lines Matching defs:nr_pages

701 	unsigned long nr_pages;
727 unsigned long nr_pages,
738 async_extent->nr_pages = nr_pages;
843 unsigned long nr_pages;
874 nr_pages = (end >> PAGE_SHIFT) - (start >> PAGE_SHIFT) + 1;
875 nr_pages = min_t(unsigned long, nr_pages, BTRFS_MAX_COMPRESSED_PAGES);
924 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_NOFS);
940 mapping, start, pages, &nr_pages, &total_in,
951 memzero_page(pages[nr_pages - 1], poff, PAGE_SIZE - poff);
1021 nr_pages, compress_type);
1037 for (i = 0; i < nr_pages; i++) {
1052 for (i = 0; i < async_extent->nr_pages; i++) {
1057 async_extent->nr_pages = 0;
1183 async_extent->nr_pages,
1575 unsigned long nr_pages;
1578 nr_pages = (async_chunk->end - async_chunk->start + PAGE_SIZE) >>
1589 if (atomic_sub_return(nr_pages, &fs_info->async_delalloc_pages) <
1617 unsigned long nr_pages;
1688 nr_pages = DIV_ROUND_UP(cur_end - start, PAGE_SIZE);
1689 atomic_add(nr_pages, &fs_info->async_delalloc_pages);
9997 unsigned long nr_pages, i;
10002 nr_pages = DIV_ROUND_UP(disk_io_size, PAGE_SIZE);
10003 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_NOFS);
10006 ret = btrfs_alloc_page_array(nr_pages, pages);
10044 for (i = 0; i < nr_pages; i++) {
10209 unsigned long nr_pages, i;
10299 nr_pages = DIV_ROUND_UP(disk_num_bytes, PAGE_SIZE);
10300 pages = kvcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL_ACCOUNT);
10303 for (i = 0; i < nr_pages; i++) {
10408 btrfs_submit_compressed_write(ordered, pages, nr_pages, 0, false);
10431 for (i = 0; i < nr_pages; i++) {
10521 unsigned long nr_pages;
10528 unsigned long nr_pages;
10538 if (bsi->nr_pages >= sis->max)
10541 max_pages = sis->max - bsi->nr_pages;
10547 nr_pages = next_ppage - first_ppage;
10548 nr_pages = min(nr_pages, max_pages);
10558 ret = add_swap_extent(sis, bsi->nr_pages, nr_pages, first_ppage);
10562 bsi->nr_pages += nr_pages;
10821 sis->max = bsi.nr_pages;
10822 sis->pages = bsi.nr_pages - 1;
10823 sis->highest_bit = bsi.nr_pages - 1;