Home
last modified time | relevance | path

Searched refs:BIO_MAX_PAGES (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v4.19/drivers/staging/erofs/
Ddata.c278 if (nblocks > BIO_MAX_PAGES) in erofs_read_raw_page()
279 nblocks = BIO_MAX_PAGES; in erofs_read_raw_page()
/Linux-v4.19/include/linux/
Dbio.h43 #define BIO_MAX_PAGES HPAGE_PMD_NR macro
45 #define BIO_MAX_PAGES 256 macro
48 #define BIO_MAX_PAGES 256 macro
/Linux-v4.19/block/
Dbio.c50 BV(1, 1), BV(4, 4), BV(16, 16), BV(64, 64), BV(128, 128), BV(BIO_MAX_PAGES, max),
205 case 129 ... BIO_MAX_PAGES: in bvec_alloc()
1202 if (nr_pages > BIO_MAX_PAGES) in bio_copy_user_iov()
1203 nr_pages = BIO_MAX_PAGES; in bio_copy_user_iov()
1301 bio = bio_kmalloc(gfp_mask, iov_iter_npages(iter, BIO_MAX_PAGES)); in bio_map_user_iov()
Dblk-zoned.c152 nr_pages = min_t(unsigned int, BIO_MAX_PAGES, in blkdev_report_zones()
Dbounce.c278 if (i++ < BIO_MAX_PAGES) in __blk_queue_bounce()
Dblk-lib.c276 return min(pages, (sector_t)BIO_MAX_PAGES); in __blkdev_sectors_to_bio_pages()
/Linux-v4.19/fs/ext4/
Dreadpage.c252 min_t(int, nr_pages, BIO_MAX_PAGES)); in ext4_mpage_readpages()
Dpage-io.c374 bio = bio_alloc(GFP_NOIO, BIO_MAX_PAGES); in io_submit_init_bio()
/Linux-v4.19/fs/
Dmpage.c308 BIO_MAX_PAGES), in do_mpage_readpage()
637 BIO_MAX_PAGES, GFP_NOFS|__GFP_HIGH); in __mpage_writepage()
Dblock_dev.c382 nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES); in __blkdev_direct_IO()
428 nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES + 1); in blkdev_direct_IO()
431 if (is_sync_kiocb(iocb) && nr_pages <= BIO_MAX_PAGES) in blkdev_direct_IO()
434 return __blkdev_direct_IO(iocb, iter, min(nr_pages, BIO_MAX_PAGES)); in blkdev_direct_IO()
Diomap.c338 ctx->bio = bio_alloc(gfp, min(BIO_MAX_PAGES, nr_vecs)); in iomap_readpage_actor()
1620 nr_pages = iov_iter_npages(&iter, BIO_MAX_PAGES); in iomap_dio_bio_actor()
1672 nr_pages = iov_iter_npages(&iter, BIO_MAX_PAGES); in iomap_dio_bio_actor()
Ddirect-io.c741 nr_pages = min(sdio->pages_in_io, BIO_MAX_PAGES); in dio_new_bio()
/Linux-v4.19/drivers/md/
Ddm-log-writes.c264 bio_pages = min(num_pages, BIO_MAX_PAGES); in write_inline_data()
356 bio = bio_alloc(GFP_KERNEL, min(block->vec_cnt, BIO_MAX_PAGES)); in log_one_block()
378 bio = bio_alloc(GFP_KERNEL, min(block->vec_cnt - i, BIO_MAX_PAGES)); in log_one_block()
Ddm-io.c344 num_bvecs = min_t(int, BIO_MAX_PAGES, in do_region()
Ddm-crypt.c228 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_PAGES * 16)
2754 ret = mempool_init(&cc->page_pool, BIO_MAX_PAGES, crypt_page_alloc, crypt_page_free, cc); in crypt_ctr()
2869 if (unlikely(bio->bi_iter.bi_size > (BIO_MAX_PAGES << PAGE_SHIFT)) && in crypt_map()
2871 dm_accept_partial_bio(bio, ((BIO_MAX_PAGES << PAGE_SHIFT) >> SECTOR_SHIFT)); in crypt_map()
Ddm-writecache.c1665 g->wc_list_contiguous = BIO_MAX_PAGES; in writecache_writeback()
1668 if (unlikely(e->wc_list_contiguous == BIO_MAX_PAGES)) in writecache_writeback()
/Linux-v4.19/drivers/nvme/target/
Dio-cmd-bdev.c96 bio = bio_alloc(GFP_KERNEL, min(sg_cnt, BIO_MAX_PAGES)); in nvmet_bdev_execute_rw()
/Linux-v4.19/drivers/target/
Dtarget_core_iblock.c330 if (sg_num > BIO_MAX_PAGES) in iblock_get_bio()
331 sg_num = BIO_MAX_PAGES; in iblock_get_bio()
Dtarget_core_pscsi.c915 nr_vecs = min_t(int, BIO_MAX_PAGES, nr_pages); in pscsi_map_sg()
/Linux-v4.19/fs/xfs/
Dxfs_aops.c542 bio = bio_alloc_bioset(GFP_NOFS, BIO_MAX_PAGES, &xfs_ioend_bioset); in xfs_alloc_ioend()
574 new = bio_alloc(GFP_NOFS, BIO_MAX_PAGES); in xfs_chain_bio()
/Linux-v4.19/fs/f2fs/
Dsegment.h812 return 8 * BIO_MAX_PAGES; in nr_pages_to_skip()
829 desired = BIO_MAX_PAGES; in nr_pages_to_write()
Ddata.c515 BIO_MAX_PAGES, false, in f2fs_submit_page_write()
550 bio = f2fs_bio_alloc(sbi, min_t(int, nr_pages, BIO_MAX_PAGES), false); in f2fs_grab_read_bio()
/Linux-v4.19/fs/nilfs2/
Dsegbuf.c406 wi->max_pages = BIO_MAX_PAGES; in nilfs_segbuf_prepare_write()
/Linux-v4.19/fs/gfs2/
Dlops.c270 bio = bio_alloc(GFP_NOIO, BIO_MAX_PAGES); in gfs2_log_alloc_bio()
/Linux-v4.19/fs/nfs/blocklayout/
Dblocklayout.c124 npg = min(npg, BIO_MAX_PAGES); in bl_alloc_init_bio()

12