/fs/iomap/ |
D | swapfile.c | 19 unsigned long nr_pages; /* number of pages collected */ member 32 unsigned long nr_pages; in iomap_swapfile_add_extent() local 49 nr_pages = next_ppage - first_ppage; in iomap_swapfile_add_extent() 65 error = add_swap_extent(isi->sis, isi->nr_pages, nr_pages, first_ppage); in iomap_swapfile_add_extent() 69 isi->nr_pages += nr_pages; in iomap_swapfile_add_extent() 173 sis->max = isi.nr_pages; in iomap_swapfile_activate() 174 sis->pages = isi.nr_pages - 1; in iomap_swapfile_activate() 175 sis->highest_bit = isi.nr_pages - 1; in iomap_swapfile_activate()
|
D | seek.c | 88 unsigned nr_pages, i; in page_cache_seek_hole_data() local 90 nr_pages = pagevec_lookup_range(&pvec, inode->i_mapping, &index, in page_cache_seek_hole_data() 92 if (nr_pages == 0) in page_cache_seek_hole_data() 95 for (i = 0; i < nr_pages; i++) { in page_cache_seek_hole_data()
|
D | direct-io.c | 212 int nr_pages, ret = 0; in iomap_dio_bio_actor() local 249 nr_pages = iov_iter_npages(&iter, BIO_MAX_PAGES); in iomap_dio_bio_actor() 250 if (nr_pages <= 0) in iomap_dio_bio_actor() 251 return nr_pages; in iomap_dio_bio_actor() 267 bio = bio_alloc(GFP_KERNEL, nr_pages); in iomap_dio_bio_actor() 309 nr_pages = iov_iter_npages(&iter, BIO_MAX_PAGES); in iomap_dio_bio_actor() 311 } while (nr_pages); in iomap_dio_bio_actor()
|
/fs/ |
D | fs-writeback.c | 43 long nr_pages; member 809 static long wb_split_bdi_pages(struct bdi_writeback *wb, long nr_pages) in wb_split_bdi_pages() argument 814 if (nr_pages == LONG_MAX) in wb_split_bdi_pages() 823 return nr_pages; in wb_split_bdi_pages() 825 return DIV_ROUND_UP_ULL((u64)nr_pages * this_bw, tot_bw); in wb_split_bdi_pages() 854 long nr_pages; in bdi_split_work_to_wbs() local 869 nr_pages = wb_split_bdi_pages(wb, base_work->nr_pages); in bdi_split_work_to_wbs() 874 work->nr_pages = nr_pages; in bdi_split_work_to_wbs() 883 work->nr_pages = nr_pages; in bdi_split_work_to_wbs() 970 work->nr_pages = nr; in cgroup_writeback_by_id() [all …]
|
D | pipe.c | 1057 unsigned int size, nr_pages; in pipe_set_size() local 1062 nr_pages = size >> PAGE_SHIFT; in pipe_set_size() 1064 if (!nr_pages) in pipe_set_size() 1074 if (nr_pages > pipe->buffers && in pipe_set_size() 1078 user_bufs = account_pipe_buffers(pipe->user, pipe->buffers, nr_pages); in pipe_set_size() 1080 if (nr_pages > pipe->buffers && in pipe_set_size() 1094 if (nr_pages < pipe->nrbufs) { in pipe_set_size() 1099 bufs = kcalloc(nr_pages, sizeof(*bufs), in pipe_set_size() 1130 pipe->buffers = nr_pages; in pipe_set_size() 1131 return nr_pages * PAGE_SIZE; in pipe_set_size() [all …]
|
D | mpage.c | 175 unsigned int nr_pages; member 226 last_block = block_in_file + args->nr_pages * blocks_per_page; in do_mpage_readpage() 343 min_t(int, args->nr_pages, in do_mpage_readpage() 422 unsigned nr_pages, get_block_t get_block) in mpage_readpages() argument 430 for (page_idx = 0; page_idx < nr_pages; page_idx++) { in mpage_readpages() 439 args.nr_pages = nr_pages - page_idx; in mpage_readpages() 458 .nr_pages = 1, in mpage_readpage()
|
D | block_dev.c | 203 int nr_pages) in __blkdev_direct_IO_simple() argument 218 if (nr_pages <= DIO_INLINE_BIO_VECS) in __blkdev_direct_IO_simple() 221 vecs = kmalloc_array(nr_pages, sizeof(struct bio_vec), in __blkdev_direct_IO_simple() 227 bio_init(&bio, vecs, nr_pages); in __blkdev_direct_IO_simple() 338 __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, int nr_pages) in __blkdev_direct_IO() argument 356 bio = bio_alloc_bioset(GFP_KERNEL, nr_pages, &blkdev_dio_pool); in __blkdev_direct_IO() 405 nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES); in __blkdev_direct_IO() 406 if (!nr_pages) { in __blkdev_direct_IO() 436 bio = bio_alloc(GFP_KERNEL, nr_pages); in __blkdev_direct_IO() 468 int nr_pages; in blkdev_direct_IO() local [all …]
|
/fs/erofs/ |
D | zdata.c | 64 cl->nr_pages = 0; in z_erofs_pcluster_init_once() 76 DBG_BUGON(cl->nr_pages); in z_erofs_pcluster_init_always() 679 clt->cl->nr_pages = max_t(pgoff_t, clt->cl->nr_pages, index + 1); in z_erofs_do_read_page() 762 unsigned int i, outputsize, llen, nr_pages; in z_erofs_decompress_pcluster() local 773 DBG_BUGON(!READ_ONCE(cl->nr_pages)); in z_erofs_decompress_pcluster() 776 nr_pages = cl->nr_pages; in z_erofs_decompress_pcluster() 778 if (nr_pages <= Z_EROFS_VMAP_ONSTACK_PAGES) { in z_erofs_decompress_pcluster() 780 } else if (nr_pages <= Z_EROFS_VMAP_GLOBAL_PAGES && in z_erofs_decompress_pcluster() 786 if (nr_pages > Z_EROFS_VMAP_GLOBAL_PAGES) in z_erofs_decompress_pcluster() 789 pages = kvmalloc_array(nr_pages, sizeof(struct page *), in z_erofs_decompress_pcluster() [all …]
|
D | data.c | 286 unsigned int nr_pages) in erofs_raw_access_readpages() argument 293 trace_erofs_readpages(mapping->host, page, nr_pages, true); in erofs_raw_access_readpages() 295 for (; nr_pages; --nr_pages) { in erofs_raw_access_readpages() 303 &last_block, nr_pages, true); in erofs_raw_access_readpages()
|
/fs/ntfs/ |
D | file.c | 495 pgoff_t index, const unsigned nr_pages, struct page **pages, in __ntfs_grab_cache_pages() argument 500 BUG_ON(!nr_pages); in __ntfs_grab_cache_pages() 526 } while (nr < nr_pages); in __ntfs_grab_cache_pages() 571 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() argument 599 BUG_ON(!nr_pages); in ntfs_prepare_pages_for_non_resident_write() 607 vi->i_ino, ni->type, pages[0]->index, nr_pages, in ntfs_prepare_pages_for_non_resident_write() 624 } while (++u < nr_pages); in ntfs_prepare_pages_for_non_resident_write() 1176 if (likely(!err && ++u < nr_pages)) in ntfs_prepare_pages_for_non_resident_write() 1222 } while (++u < nr_pages); in ntfs_prepare_pages_for_non_resident_write() 1330 nr_pages = u; in ntfs_prepare_pages_for_non_resident_write() [all …]
|
/fs/btrfs/ |
D | compression.c | 93 for (i = 0; i < cb->nr_pages; i++) { in check_compressed_csum() 176 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_read() 217 unsigned long nr_pages = end_index - index + 1; in end_compressed_writeback() local 224 while (nr_pages > 0) { in end_compressed_writeback() 227 nr_pages, ARRAY_SIZE(pages)), pages); in end_compressed_writeback() 229 nr_pages -= 1; in end_compressed_writeback() 239 nr_pages -= ret; in end_compressed_writeback() 287 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_write() 313 unsigned long nr_pages, in btrfs_submit_compressed_write() argument 340 cb->nr_pages = nr_pages; in btrfs_submit_compressed_write() [all …]
|
D | zlib.c | 103 int nr_pages = 0; in zlib_compress_pages() local 134 nr_pages = 1; in zlib_compress_pages() 164 if (nr_pages == nr_dest_pages) { in zlib_compress_pages() 175 pages[nr_pages] = out_page; in zlib_compress_pages() 176 nr_pages++; in zlib_compress_pages() 220 *out_pages = nr_pages; in zlib_compress_pages()
|
D | zstd.c | 381 int nr_pages = 0; in zstd_compress_pages() local 418 pages[nr_pages++] = out_page; in zstd_compress_pages() 455 if (nr_pages == nr_dest_pages) { in zstd_compress_pages() 465 pages[nr_pages++] = out_page; in zstd_compress_pages() 515 if (nr_pages == nr_dest_pages) { in zstd_compress_pages() 525 pages[nr_pages++] = out_page; in zstd_compress_pages() 540 *out_pages = nr_pages; in zstd_compress_pages()
|
D | lzo.c | 146 int nr_pages = 0; in lzo_compress_pages() local 182 nr_pages = 1; in lzo_compress_pages() 237 if (nr_pages == nr_dest_pages) { in lzo_compress_pages() 249 pages[nr_pages++] = out_page; in lzo_compress_pages() 294 *out_pages = nr_pages; in lzo_compress_pages()
|
/fs/afs/ |
D | file.c | 26 struct list_head *pages, unsigned nr_pages); 195 for (i = 0; i < req->nr_pages; i++) in afs_put_read() 326 req->nr_pages = 1; in afs_page_filler() 498 req->pages[req->nr_pages++] = page; in afs_readpages_one() 500 } while (req->nr_pages < n); in afs_readpages_one() 502 if (req->nr_pages == 0) { in afs_readpages_one() 511 task_io_account_read(PAGE_SIZE * req->nr_pages); in afs_readpages_one() 523 for (i = 0; i < req->nr_pages; i++) { in afs_readpages_one() 542 struct list_head *pages, unsigned nr_pages) in afs_readpages() argument 549 key_serial(key), mapping->host->i_ino, nr_pages); in afs_readpages() [all …]
|
/fs/9p/ |
D | cache.h | 37 unsigned *nr_pages); 62 unsigned *nr_pages) in v9fs_readpages_from_fscache() argument 65 nr_pages); in v9fs_readpages_from_fscache() 118 unsigned *nr_pages) in v9fs_readpages_from_fscache() argument
|
D | cache.c | 281 unsigned *nr_pages) in __v9fs_readpages_from_fscache() argument 286 p9_debug(P9_DEBUG_FSC, "inode %p pages %u\n", inode, *nr_pages); in __v9fs_readpages_from_fscache() 291 mapping, pages, nr_pages, in __v9fs_readpages_from_fscache() 302 BUG_ON(*nr_pages != 0); in __v9fs_readpages_from_fscache()
|
/fs/cifs/ |
D | file.c | 2169 unsigned int nr_pages = 0, i; in wdata_prepare_pages() local 2181 if (nr_pages == 0) in wdata_prepare_pages() 2226 ++nr_pages; in wdata_prepare_pages() 2230 if (nr_pages == 0) in wdata_prepare_pages() 2234 for (i = nr_pages; i < found_pages; i++) { in wdata_prepare_pages() 2239 return nr_pages; in wdata_prepare_pages() 2243 wdata_send_pages(struct cifs_writedata *wdata, unsigned int nr_pages, in wdata_send_pages() argument 2251 wdata->nr_pages = nr_pages; in wdata_send_pages() 2255 page_offset(wdata->pages[nr_pages - 1]), in wdata_send_pages() 2257 wdata->bytes = ((nr_pages - 1) * PAGE_SIZE) + wdata->tailsz; in wdata_send_pages() [all …]
|
D | fscache.h | 95 unsigned *nr_pages) in cifs_readpages_from_fscache() argument 99 nr_pages); in cifs_readpages_from_fscache() 149 unsigned *nr_pages) in cifs_readpages_from_fscache() argument
|
/fs/nfs/ |
D | fscache.c | 441 unsigned *nr_pages) in __nfs_readpages_from_fscache() argument 443 unsigned npages = *nr_pages; in __nfs_readpages_from_fscache() 450 mapping, pages, nr_pages, in __nfs_readpages_from_fscache() 454 if (*nr_pages < npages) in __nfs_readpages_from_fscache() 457 if (*nr_pages > 0) in __nfs_readpages_from_fscache() 459 *nr_pages); in __nfs_readpages_from_fscache() 464 BUG_ON(*nr_pages != 0); in __nfs_readpages_from_fscache()
|
D | fscache.h | 144 unsigned *nr_pages) in nfs_readpages_from_fscache() argument 148 nr_pages); in nfs_readpages_from_fscache() 223 unsigned *nr_pages) in nfs_readpages_from_fscache() argument
|
/fs/cachefiles/ |
D | rdwr.c | 684 unsigned *nr_pages, in cachefiles_read_or_alloc_pages() argument 703 *nr_pages); in cachefiles_read_or_alloc_pages() 709 if (cachefiles_has_space(cache, 0, *nr_pages) < 0) in cachefiles_read_or_alloc_pages() 752 (*nr_pages)--; in cachefiles_read_or_alloc_pages() 778 ret, *nr_pages, list_empty(pages) ? " empty" : ""); in cachefiles_read_or_alloc_pages() 782 fscache_retrieval_complete(op, *nr_pages); in cachefiles_read_or_alloc_pages() 836 unsigned *nr_pages, in cachefiles_allocate_pages() argument 850 _enter("%p,,,%d,", object, *nr_pages); in cachefiles_allocate_pages() 852 ret = cachefiles_has_space(cache, 0, *nr_pages); in cachefiles_allocate_pages() 868 fscache_retrieval_complete(op, *nr_pages); in cachefiles_allocate_pages()
|
/fs/gfs2/ |
D | aops.c | 241 int nr_pages, in gfs2_write_jdata_pagevec() argument 246 unsigned nrblocks = nr_pages * (PAGE_SIZE >> inode->i_blkbits); in gfs2_write_jdata_pagevec() 254 for(i = 0; i < nr_pages; i++) { in gfs2_write_jdata_pagevec() 339 int nr_pages; in gfs2_write_cache_jdata() local 374 nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in gfs2_write_cache_jdata() 376 if (nr_pages == 0) in gfs2_write_cache_jdata() 379 ret = gfs2_write_jdata_pagevec(mapping, wbc, &pvec, nr_pages, &done_index); in gfs2_write_cache_jdata() 600 struct list_head *pages, unsigned nr_pages) in gfs2_readpages() argument 613 ret = mpage_readpages(mapping, pages, nr_pages, gfs2_block_map); in gfs2_readpages()
|
/fs/ext4/ |
D | readpage.c | 253 unsigned nr_pages, bool is_readahead) in ext4_mpage_readpages() argument 278 for (; nr_pages; nr_pages--) { in ext4_mpage_readpages() 297 last_block = block_in_file + nr_pages * blocks_per_page; in ext4_mpage_readpages() 406 min_t(int, nr_pages, BIO_MAX_PAGES)); in ext4_mpage_readpages()
|
/fs/btrfs/tests/ |
D | extent-io-tests.c | 26 unsigned long nr_pages = end_index - index + 1; in process_page_range() local 31 while (nr_pages > 0) { in process_page_range() 33 min_t(unsigned long, nr_pages, in process_page_range() 45 nr_pages -= ret; in process_page_range() 52 start, end, nr_pages, ret); in process_page_range()
|