Lines Matching refs:poff
98 size_t poff = offset_in_folio(folio, *pos); in iomap_adjust_read_range() local
99 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); in iomap_adjust_read_range()
100 unsigned first = poff >> block_bits; in iomap_adjust_read_range()
101 unsigned last = (poff + plen - 1) >> block_bits; in iomap_adjust_read_range()
116 poff += block_size; in iomap_adjust_read_range()
143 *offp = poff; in iomap_adjust_read_range()
219 size_t poff = offset_in_page(iomap->offset); in iomap_read_inline_data() local
226 if (WARN_ON_ONCE(size > PAGE_SIZE - poff)) in iomap_read_inline_data()
240 memset(addr + size, 0, PAGE_SIZE - poff - size); in iomap_read_inline_data()
242 iomap_set_range_uptodate(folio, iop, offset, PAGE_SIZE - poff); in iomap_read_inline_data()
265 size_t poff, plen; in iomap_readpage_iter() local
273 iomap_adjust_read_range(iter->inode, folio, &pos, length, &poff, &plen); in iomap_readpage_iter()
278 folio_zero_range(folio, poff, plen); in iomap_readpage_iter()
279 iomap_set_range_uptodate(folio, iop, poff, plen); in iomap_readpage_iter()
290 !bio_add_folio(ctx->bio, folio, plen, poff)) { in iomap_readpage_iter()
315 bio_add_folio(ctx->bio, folio, plen, poff); in iomap_readpage_iter()
542 size_t poff, size_t plen, const struct iomap *iomap) in iomap_read_folio_sync() argument
549 bio_add_folio(&bio, folio, plen, poff); in iomap_read_folio_sync()
563 size_t poff, plen; in __iomap_write_begin() local
575 block_end - block_start, &poff, &plen); in __iomap_write_begin()
580 (from <= poff || from >= poff + plen) && in __iomap_write_begin()
581 (to <= poff || to >= poff + plen)) in __iomap_write_begin()
587 folio_zero_segments(folio, poff, from, to, poff + plen); in __iomap_write_begin()
595 poff, plen, srcmap); in __iomap_write_begin()
599 iomap_set_range_uptodate(folio, iop, poff, plen); in __iomap_write_begin()
1582 size_t poff = offset_in_folio(folio, pos); in iomap_add_to_ioend() local
1590 if (!bio_add_folio(wpc->ioend->io_bio, folio, len, poff)) { in iomap_add_to_ioend()
1592 bio_add_folio(wpc->ioend->io_bio, folio, len, poff); in iomap_add_to_ioend()
1767 size_t poff = offset_in_folio(folio, isize); in iomap_do_writepage() local
1788 (folio->index == end_index && poff == 0)) in iomap_do_writepage()
1799 folio_zero_segment(folio, poff, folio_size(folio)); in iomap_do_writepage()