Lines Matching refs:iomap
220 const struct iomap *iomap = iomap_iter_srcmap(iter); in iomap_read_inline_data() local
221 size_t size = i_size_read(iter->inode) - iomap->offset; in iomap_read_inline_data()
222 size_t poff = offset_in_page(iomap->offset); in iomap_read_inline_data()
231 offset_in_page(iomap->inline_data))) in iomap_read_inline_data()
233 if (WARN_ON_ONCE(size > iomap->length)) in iomap_read_inline_data()
239 memcpy(addr, iomap->inline_data, size); in iomap_read_inline_data()
249 const struct iomap *srcmap = iomap_iter_srcmap(iter); in iomap_block_needs_zeroing()
259 const struct iomap *iomap = &iter->iomap; in iomap_readpage_iter() local
268 if (iomap->type == IOMAP_INLINE) in iomap_readpage_iter()
287 sector = iomap_sector(iomap, pos); in iomap_readpage_iter()
312 bio_set_dev(ctx->bio, iomap->bdev); in iomap_readpage_iter()
537 unsigned plen, const struct iomap *iomap) in iomap_read_page_sync() argument
544 bio.bi_iter.bi_sector = iomap_sector(iomap, block_start); in iomap_read_page_sync()
545 bio_set_dev(&bio, iomap->bdev); in iomap_read_page_sync()
553 const struct iomap *srcmap = iomap_iter_srcmap(iter); in __iomap_write_begin()
603 const struct iomap_page_ops *page_ops = iter->iomap.page_ops; in iomap_write_begin()
604 const struct iomap *srcmap = iomap_iter_srcmap(iter); in iomap_write_begin()
608 BUG_ON(pos + len > iter->iomap.offset + iter->iomap.length); in iomap_write_begin()
609 if (srcmap != &iter->iomap) in iomap_write_begin()
678 const struct iomap *iomap = &iter->iomap; in iomap_write_end_inline() local
682 BUG_ON(!iomap_inline_data_valid(iomap)); in iomap_write_end_inline()
686 memcpy(iomap_inline_data(iomap, pos), addr, copied); in iomap_write_end_inline()
697 const struct iomap_page_ops *page_ops = iter->iomap.page_ops; in iomap_write_end()
698 const struct iomap *srcmap = iomap_iter_srcmap(iter); in iomap_write_end()
718 iter->iomap.flags |= IOMAP_F_SIZE_CHANGED; in iomap_write_end()
822 struct iomap *iomap = &iter->iomap; in iomap_unshare_iter() local
823 const struct iomap *srcmap = iomap_iter_srcmap(iter); in iomap_unshare_iter()
830 if (!(iomap->flags & IOMAP_F_SHARED)) in iomap_unshare_iter()
898 struct iomap *iomap = &iter->iomap; in iomap_zero_iter() local
899 const struct iomap *srcmap = iomap_iter_srcmap(iter); in iomap_zero_iter()
912 bytes = dax_iomap_zero(pos, length, iomap); in iomap_zero_iter()
966 if (iter->iomap.flags & IOMAP_F_BUFFER_HEAD) { in iomap_page_mkwrite_iter()
968 &iter->iomap); in iomap_page_mkwrite_iter()
1190 bio_set_dev(bio, wpc->iomap.bdev); in iomap_alloc_ioend()
1198 ioend->io_type = wpc->iomap.type; in iomap_alloc_ioend()
1199 ioend->io_flags = wpc->iomap.flags; in iomap_alloc_ioend()
1235 if ((wpc->iomap.flags & IOMAP_F_SHARED) != in iomap_can_add_to_ioend()
1238 if (wpc->iomap.type != wpc->ioend->io_type) in iomap_can_add_to_ioend()
1256 sector_t sector = iomap_sector(&wpc->iomap, offset); in iomap_add_to_ioend()
1321 if (WARN_ON_ONCE(wpc->iomap.type == IOMAP_INLINE)) in iomap_writepage_map()
1323 if (wpc->iomap.type == IOMAP_HOLE) in iomap_writepage_map()