Lines Matching refs:nr_pages
254 unsigned long nr_pages; member
272 unsigned long nr_pages) in add_async_extent() argument
281 async_extent->nr_pages = nr_pages; in add_async_extent()
318 unsigned long nr_pages; in compress_file_range() local
332 nr_pages = (end >> PAGE_CACHE_SHIFT) - (start >> PAGE_CACHE_SHIFT) + 1; in compress_file_range()
333 nr_pages = min(nr_pages, (128 * 1024UL) / PAGE_CACHE_SIZE); in compress_file_range()
375 pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS); in compress_file_range()
379 nr_pages, &nr_pages_ret, in compress_file_range()
652 async_extent->nr_pages); in submit_compressed_extents()
821 unsigned long nr_pages; in async_cow_submit() local
826 nr_pages = (async_cow->end - async_cow->start + PAGE_CACHE_SIZE) >> in async_cow_submit()
829 atomic_sub(nr_pages, &root->fs_info->async_delalloc_pages); in async_cow_submit()
853 unsigned long nr_pages; in cow_file_range_async() local
884 nr_pages = (cur_end - start + PAGE_CACHE_SIZE) >> in cow_file_range_async()
886 atomic_add(nr_pages, &root->fs_info->async_delalloc_pages); in cow_file_range_async()
904 *nr_written += nr_pages; in cow_file_range_async()
4205 struct list_head *pages, unsigned nr_pages) in btrfs_readpages() argument
4209 return extent_readpages(tree, mapping, pages, nr_pages, in btrfs_readpages()