Home
last modified time | relevance | path

Searched refs:nr_pages (Results 1 – 25 of 29) sorted by relevance

12

/fs/btrfs/
Dcompression.c67 unsigned long nr_pages; member
129 for (i = 0; i < cb->nr_pages; i++) { in check_compressed_csum()
203 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_read()
245 unsigned long nr_pages = end_index - index + 1; in end_compressed_writeback() local
249 while (nr_pages > 0) { in end_compressed_writeback()
252 nr_pages, ARRAY_SIZE(pages)), pages); in end_compressed_writeback()
254 nr_pages -= 1; in end_compressed_writeback()
262 nr_pages -= ret; in end_compressed_writeback()
314 for (index = 0; index < cb->nr_pages; index++) { in end_compressed_bio_write()
340 unsigned long nr_pages) in btrfs_submit_compressed_write() argument
[all …]
Dzlib.c199 int nr_pages = 0; in btrfs_zlib_compress_pages() local
229 nr_pages = 1; in btrfs_zlib_compress_pages()
262 if (nr_pages == nr_dest_pages) { in btrfs_zlib_compress_pages()
269 pages[nr_pages] = out_page; in btrfs_zlib_compress_pages()
270 nr_pages++; in btrfs_zlib_compress_pages()
314 *out_pages = nr_pages; in btrfs_zlib_compress_pages()
Dcompression.h44 unsigned long nr_pages);
Dinode.c254 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
[all …]
Dextent_io.c1129 unsigned long nr_pages = end_index - index + 1; in __unlock_for_delalloc() local
1135 while (nr_pages > 0) { in __unlock_for_delalloc()
1137 min_t(unsigned long, nr_pages, in __unlock_for_delalloc()
1144 nr_pages -= ret; in __unlock_for_delalloc()
1309 unsigned long nr_pages = end_index - index + 1; in extent_clear_unlock_delalloc() local
1325 while (nr_pages > 0) { in extent_clear_unlock_delalloc()
1328 nr_pages, ARRAY_SIZE(pages)), pages); in extent_clear_unlock_delalloc()
1344 nr_pages -= ret; in extent_clear_unlock_delalloc()
2372 int nr_pages; in extent_write_cache_pages() local
2391 (nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in extent_write_cache_pages()
[all …]
Dordered-data.c691 int nr_pages; in btrfs_wait_on_page_writeback_range() local
701 (nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in btrfs_wait_on_page_writeback_range()
706 for (i = 0; i < nr_pages; i++) { in btrfs_wait_on_page_writeback_range()
Dextent_io.h198 struct list_head *pages, unsigned nr_pages,
/fs/
Dsplice.c177 unsigned int spd_pages = spd->nr_pages; in splice_to_pipe()
214 if (!--spd->nr_pages) in splice_to_pipe()
275 unsigned int loff, nr_pages, req_pages; in __generic_file_splice_read() local
293 nr_pages = min(req_pages, (unsigned)PIPE_BUFFERS); in __generic_file_splice_read()
298 spd.nr_pages = find_get_pages_contig(mapping, index, nr_pages, pages); in __generic_file_splice_read()
299 index += spd.nr_pages; in __generic_file_splice_read()
305 if (spd.nr_pages < nr_pages) in __generic_file_splice_read()
307 index, req_pages - spd.nr_pages); in __generic_file_splice_read()
310 while (spd.nr_pages < nr_pages) { in __generic_file_splice_read()
339 pages[spd.nr_pages++] = page; in __generic_file_splice_read()
[all …]
Dbio.c489 int nr_pages; in bio_get_nr_vecs() local
491 nr_pages = ((q->max_sectors << 9) + PAGE_SIZE - 1) >> PAGE_SHIFT; in bio_get_nr_vecs()
492 if (nr_pages > q->max_phys_segments) in bio_get_nr_vecs()
493 nr_pages = q->max_phys_segments; in bio_get_nr_vecs()
494 if (nr_pages > q->max_hw_segments) in bio_get_nr_vecs()
495 nr_pages = q->max_hw_segments; in bio_get_nr_vecs()
497 return nr_pages; in bio_get_nr_vecs()
792 int nr_pages = 0; in bio_copy_user_iov() local
805 nr_pages += end - start; in bio_copy_user_iov()
809 bmd = bio_alloc_map_data(nr_pages, iov_count, gfp_mask); in bio_copy_user_iov()
[all …]
Dmpage.c169 do_mpage_readpage(struct bio *bio, struct page *page, unsigned nr_pages, in do_mpage_readpage() argument
193 last_block = block_in_file + nr_pages * blocks_per_page; in do_mpage_readpage()
298 min_t(int, nr_pages, bio_get_nr_vecs(bdev)), in do_mpage_readpage()
375 unsigned nr_pages, get_block_t get_block) in mpage_readpages() argument
384 for (page_idx = 0; page_idx < nr_pages; page_idx++) { in mpage_readpages()
392 nr_pages - page_idx, in mpage_readpages()
Daio.c87 for (i=0; i<info->nr_pages; i++) in aio_free_ring()
108 int nr_pages; in aio_setup_ring() local
115 nr_pages = (size + PAGE_SIZE-1) >> PAGE_SHIFT; in aio_setup_ring()
117 if (nr_pages < 0) in aio_setup_ring()
120 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) / sizeof(struct io_event); in aio_setup_ring()
124 if (nr_pages > AIO_RING_PAGES) { in aio_setup_ring()
125 info->ring_pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL); in aio_setup_ring()
130 info->mmap_size = nr_pages * PAGE_SIZE; in aio_setup_ring()
144 info->nr_pages = get_user_pages(current, ctx->mm, in aio_setup_ring()
145 info->mmap_base, nr_pages, in aio_setup_ring()
[all …]
Ddirect-io.c150 int nr_pages; in dio_refill_pages() local
152 nr_pages = min(dio->total_pages - dio->curr_page, DIO_PAGES); in dio_refill_pages()
155 nr_pages, /* How many pages? */ in dio_refill_pages()
547 int ret, nr_pages; in dio_new_bio() local
553 nr_pages = min(dio->pages_in_io, bio_get_nr_vecs(dio->map_bh.b_bdev)); in dio_new_bio()
554 BUG_ON(nr_pages <= 0); in dio_new_bio()
555 ret = dio_bio_alloc(dio, dio->map_bh.b_bdev, sector, nr_pages); in dio_new_bio()
Dbio-integrity.c360 unsigned int len, nr_pages; in bio_integrity_prep() local
381 nr_pages = end - start; in bio_integrity_prep()
384 bip = bio_integrity_alloc(bio, GFP_NOIO, nr_pages); in bio_integrity_prep()
397 for (i = 0 ; i < nr_pages ; i++) { in bio_integrity_prep()
/fs/ntfs/
Dfile.c415 pgoff_t index, const unsigned nr_pages, struct page **pages, in __ntfs_grab_cache_pages() argument
420 BUG_ON(!nr_pages); in __ntfs_grab_cache_pages()
447 } while (nr < nr_pages); in __ntfs_grab_cache_pages()
492 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() argument
520 BUG_ON(!nr_pages); in ntfs_prepare_pages_for_non_resident_write()
528 vi->i_ino, ni->type, pages[0]->index, nr_pages, in ntfs_prepare_pages_for_non_resident_write()
545 } while (++u < nr_pages); in ntfs_prepare_pages_for_non_resident_write()
1098 if (likely(!err && ++u < nr_pages)) in ntfs_prepare_pages_for_non_resident_write()
1144 } while (++u < nr_pages); in ntfs_prepare_pages_for_non_resident_write()
1252 nr_pages = u; in ntfs_prepare_pages_for_non_resident_write()
[all …]
Dcompress.c516 unsigned int nr_pages = (end_vcn - start_vcn) << in ntfs_read_compressed_block() local
525 "%i.", index, cb_size, nr_pages); in ntfs_read_compressed_block()
533 pages = kmalloc(nr_pages * sizeof(struct page *), GFP_NOFS); in ntfs_read_compressed_block()
574 if (nr_pages < max_page) in ntfs_read_compressed_block()
575 max_page = nr_pages; in ntfs_read_compressed_block()
/fs/gfs2/
Dops_address.c266 int nr_pages, pgoff_t end) in gfs2_write_jdata_pagevec() argument
273 unsigned nrblocks = nr_pages * (PAGE_CACHE_SIZE/inode->i_sb->s_blocksize); in gfs2_write_jdata_pagevec()
282 for(i = 0; i < nr_pages; i++) { in gfs2_write_jdata_pagevec()
347 int nr_pages; in gfs2_write_cache_jdata() local
372 (nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in gfs2_write_cache_jdata()
376 ret = gfs2_write_jdata_pagevec(mapping, wbc, &pvec, nr_pages, end); in gfs2_write_cache_jdata()
587 struct list_head *pages, unsigned nr_pages) in gfs2_readpages() argument
600 ret = mpage_readpages(mapping, pages, nr_pages, gfs2_block_map); in gfs2_readpages()
/fs/jfs/
Dinode.c291 struct list_head *pages, unsigned nr_pages) in jfs_readpages() argument
293 return mpage_readpages(mapping, pages, nr_pages, jfs_get_block); in jfs_readpages()
/fs/xfs/linux-2.6/
Dxfs_buf.c1166 int rw, map_i, total_nr_pages, nr_pages; in _xfs_buf_ioapply() local
1214 nr_pages = BIO_MAX_SECTORS >> (PAGE_SHIFT - BBSHIFT); in _xfs_buf_ioapply()
1215 if (nr_pages > total_nr_pages) in _xfs_buf_ioapply()
1216 nr_pages = total_nr_pages; in _xfs_buf_ioapply()
1218 bio = bio_alloc(GFP_NOIO, nr_pages); in _xfs_buf_ioapply()
1224 for (; size && nr_pages; nr_pages--, map_i++) { in _xfs_buf_ioapply()
Dxfs_aops.c1598 unsigned nr_pages) in xfs_vm_readpages() argument
1600 return mpage_readpages(mapping, pages, nr_pages, xfs_get_blocks); in xfs_vm_readpages()
/fs/omfs/
Dfile.c310 struct list_head *pages, unsigned nr_pages) in omfs_readpages() argument
312 return mpage_readpages(mapping, pages, nr_pages, omfs_get_block); in omfs_readpages()
/fs/ext4/
Dinode.c1689 int ret = 0, err, nr_pages, i; in mpage_da_submit_io() local
1705 nr_pages = pagevec_lookup(&pvec, mapping, index, PAGEVEC_SIZE); in mpage_da_submit_io()
1706 if (nr_pages == 0) in mpage_da_submit_io()
1708 for (i = 0; i < nr_pages; i++) { in mpage_da_submit_io()
1761 int nr_pages, i; in mpage_put_bnr_to_bhs() local
1771 nr_pages = pagevec_lookup(&pvec, mapping, index, PAGEVEC_SIZE); in mpage_put_bnr_to_bhs()
1772 if (nr_pages == 0) in mpage_put_bnr_to_bhs()
1774 for (i = 0; i < nr_pages; i++) { in mpage_put_bnr_to_bhs()
1839 int nr_pages, i; in ext4_da_block_invalidatepages() local
1849 nr_pages = pagevec_lookup(&pvec, mapping, index, PAGEVEC_SIZE); in ext4_da_block_invalidatepages()
[all …]
/fs/nfs/
Dread.c560 struct list_head *pages, unsigned nr_pages) in nfs_readpages() argument
575 nr_pages); in nfs_readpages()
/fs/cifs/
Dfile.c1227 int nr_pages; in cifs_writepages() local
1281 (nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in cifs_writepages()
1292 for (i = 0; i < nr_pages; i++) { in cifs_writepages()
/fs/ext2/
Dinode.c726 struct list_head *pages, unsigned nr_pages) in ext2_readpages() argument
728 return mpage_readpages(mapping, pages, nr_pages, ext2_get_block); in ext2_readpages()
/fs/ocfs2/
Daops.c339 struct list_head *pages, unsigned nr_pages) in ocfs2_readpages() argument
376 err = mpage_readpages(mapping, pages, nr_pages, ocfs2_get_block); in ocfs2_readpages()

12