Lines Matching defs:offset

50 	xfs_off_t		offset,
63 isize = xfs_new_eof(ip, offset + size);
70 trace_xfs_setfilesize(ip, offset, size);
88 xfs_off_t offset = ioend->io_offset;
118 xfs_reflink_cancel_cow_range(ip, offset, size, true);
119 xfs_bmap_punch_delalloc_range(ip, offset,
120 offset + size);
129 error = xfs_reflink_end_cow(ip, offset, size);
131 error = xfs_iomap_write_unwritten(ip, offset, size, false);
202 loff_t offset)
204 if (offset < wpc->iomap.offset ||
205 offset >= wpc->iomap.offset + wpc->iomap.length)
209 * covers the offset. Be careful to check this first because the caller
219 * checked (and found nothing at this offset) could have added
249 loff_t offset)
260 * Attempt to allocate whatever delalloc extent currently backs offset
266 error = xfs_bmapi_convert_delalloc(ip, whichfork, offset,
270 } while (wpc->iomap.offset + wpc->iomap.length <= offset);
279 loff_t offset)
284 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset);
285 xfs_fileoff_t end_fsb = XFS_B_TO_FSB(mp, offset + count);
313 if (xfs_imap_valid(wpc, ip, offset))
318 * offset. This will convert delayed allocations (including COW ones)
329 * Check if this is offset is covered by a COW extents, and if yes use
347 if (xfs_imap_valid(wpc, ip, offset)) {
354 * offset. This will convert delayed allocations (including COW ones)
386 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap);
389 error = xfs_convert_blocks(wpc, ip, whichfork, offset);
412 if (cow_offset < wpc->iomap.offset + wpc->iomap.length)
413 wpc->iomap.length = cow_offset - wpc->iomap.offset;
416 ASSERT(wpc->iomap.offset <= offset);
417 ASSERT(wpc->iomap.offset + wpc->iomap.length > offset);
418 trace_xfs_map_blocks_alloc(ip, offset, count, whichfork, &imap);
481 * The end of the punch range is always the offset of the first
482 * byte of the next folio. Hence the end offset is only dependent on the
483 * folio itself and not the start offset that is passed in.