Home
last modified time | relevance | path

Searched refs:pages (Results 1 – 4 of 4) sorted by relevance

/block/
Dbio.c984 static void bio_put_pages(struct page **pages, size_t size, size_t off) in bio_put_pages() argument
989 put_page(pages[i]); in bio_put_pages()
1009 struct page **pages = (struct page **)bv; in __bio_iov_iter_get_pages() local
1021 pages += entries_left * (PAGE_PTRS_PER_BVEC - 1); in __bio_iov_iter_get_pages()
1023 size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset); in __bio_iov_iter_get_pages()
1028 struct page *page = pages[i]; in __bio_iov_iter_get_pages()
1037 bio_put_pages(pages + i, left, offset); in __bio_iov_iter_get_pages()
1056 struct page **pages = (struct page **)bv; in __bio_iov_append_get_pages() local
1068 pages += entries_left * (PAGE_PTRS_PER_BVEC - 1); in __bio_iov_append_get_pages()
1070 size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset); in __bio_iov_append_get_pages()
[all …]
Dblk-map.c181 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
260 struct page **pages; in bio_map_user_iov() local
265 bytes = iov_iter_get_pages_alloc(iter, &pages, LONG_MAX, &offs); in bio_map_user_iov()
278 struct page *page = pages[j]; in bio_map_user_iov()
302 put_page(pages[j++]); in bio_map_user_iov()
303 kvfree(pages); in bio_map_user_iov()
Dblk-lib.c297 sector_t pages = DIV_ROUND_UP_SECTOR_T(nr_sects, PAGE_SIZE / 512); in __blkdev_sectors_to_bio_pages() local
299 return min(pages, (sector_t)BIO_MAX_PAGES); in __blkdev_sectors_to_bio_pages()
Dblk-iocost.c2493 u64 pages = max_t(u64, bio_sectors(bio) >> IOC_SECT_TO_PAGE_SHIFT, 1); in calc_vtime_cost_builtin() local
2524 cost += pages * coef_page; in calc_vtime_cost_builtin()
2540 unsigned int pages = blk_rq_stats_sectors(rq) >> IOC_SECT_TO_PAGE_SHIFT; in calc_size_vtime_cost_builtin() local
2544 *costp = pages * ioc->params.lcoefs[LCOEF_RPAGE]; in calc_size_vtime_cost_builtin()
2547 *costp = pages * ioc->params.lcoefs[LCOEF_WPAGE]; in calc_size_vtime_cost_builtin()