Home
last modified time | relevance | path

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

/block/
Dblk-map.c178 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
250 struct page **pages; in bio_map_user_iov() local
255 bytes = iov_iter_get_pages_alloc(iter, &pages, LONG_MAX, &offs); in bio_map_user_iov()
268 struct page *page = pages[j]; in bio_map_user_iov()
292 put_page(pages[j++]); in bio_map_user_iov()
293 kvfree(pages); in bio_map_user_iov()
Dbio.c1069 static void bio_put_pages(struct page **pages, size_t size, size_t off) in bio_put_pages() argument
1074 put_page(pages[i]); in bio_put_pages()
1125 struct page **pages = (struct page **)bv; in __bio_iov_iter_get_pages() local
1137 pages += entries_left * (PAGE_PTRS_PER_BVEC - 1); in __bio_iov_iter_get_pages()
1139 size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset); in __bio_iov_iter_get_pages()
1144 struct page *page = pages[i]; in __bio_iov_iter_get_pages()
1154 bio_put_pages(pages + i, left, offset); in __bio_iov_iter_get_pages()
Dblk-lib.c298 sector_t pages = DIV_ROUND_UP_SECTOR_T(nr_sects, PAGE_SIZE / 512); in __blkdev_sectors_to_bio_pages() local
300 return min(pages, (sector_t)BIO_MAX_VECS); in __blkdev_sectors_to_bio_pages()
Dblk-iocost.c2515 u64 pages = max_t(u64, bio_sectors(bio) >> IOC_SECT_TO_PAGE_SHIFT, 1); in calc_vtime_cost_builtin() local
2546 cost += pages * coef_page; in calc_vtime_cost_builtin()
2562 unsigned int pages = blk_rq_stats_sectors(rq) >> IOC_SECT_TO_PAGE_SHIFT; in calc_size_vtime_cost_builtin() local
2566 *costp = pages * ioc->params.lcoefs[LCOEF_RPAGE]; in calc_size_vtime_cost_builtin()
2569 *costp = pages * ioc->params.lcoefs[LCOEF_WPAGE]; in calc_size_vtime_cost_builtin()