Lines Matching refs:nr_pages
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
470 nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES + 1); in blkdev_direct_IO()
471 if (!nr_pages) in blkdev_direct_IO()
473 if (is_sync_kiocb(iocb) && nr_pages <= BIO_MAX_PAGES) in blkdev_direct_IO()
474 return __blkdev_direct_IO_simple(iocb, iter, nr_pages); in blkdev_direct_IO()
476 return __blkdev_direct_IO(iocb, iter, min(nr_pages, BIO_MAX_PAGES)); in blkdev_direct_IO()
618 struct list_head *pages, unsigned nr_pages) in blkdev_readpages() argument
620 return mpage_readpages(mapping, pages, nr_pages, blkdev_get_block); in blkdev_readpages()