Lines Matching refs:offset_fsb
144 xfs_fileoff_t offset_fsb, in xfs_hole_to_iomap() argument
151 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap()
152 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap()
238 xfs_fileoff_t offset_fsb, in xfs_iomap_write_direct() argument
256 resaligned = xfs_aligned_fsb_count(offset_fsb, count_fsb, in xfs_iomap_write_direct()
308 error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb, bmapi_flags, 0, in xfs_iomap_write_direct()
411 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_iomap_prealloc_size() local
434 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size()
546 xfs_fileoff_t offset_fsb; in xfs_iomap_write_unwritten() local
559 offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_iomap_write_unwritten()
561 count_fsb = (xfs_filblks_t)(count_fsb - offset_fsb); in xfs_iomap_write_unwritten()
607 error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb, in xfs_iomap_write_unwritten()
618 i_size = XFS_FSB_TO_B(mp, offset_fsb + count_fsb); in xfs_iomap_write_unwritten()
645 offset_fsb += numblks_fsb; in xfs_iomap_write_unwritten()
755 xfs_fileoff_t offset_fsb, in imap_spans_range() argument
758 if (imap->br_startoff > offset_fsb) in imap_spans_range()
777 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_direct_write_iomap_begin() local
802 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, &imap, in xfs_direct_write_iomap_begin()
835 if (!imap_spans_range(&imap, offset_fsb, end_fsb)) in xfs_direct_write_iomap_begin()
880 error = xfs_iomap_write_direct(ip, offset_fsb, end_fsb - offset_fsb, in xfs_direct_write_iomap_begin()
950 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_buffered_write_iomap_begin() local
997 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin()
1003 imap.br_startoff > offset_fsb) { in xfs_buffered_write_iomap_begin()
1004 xfs_hole_to_iomap(ip, iomap, offset_fsb, imap.br_startoff); in xfs_buffered_write_iomap_begin()
1013 if ((flags & IOMAP_ZERO) && imap.br_startoff <= offset_fsb && in xfs_buffered_write_iomap_begin()
1017 if (offset_fsb >= eof_fsb) in xfs_buffered_write_iomap_begin()
1021 xfs_trim_extent(&imap, offset_fsb, in xfs_buffered_write_iomap_begin()
1022 end_fsb - offset_fsb); in xfs_buffered_write_iomap_begin()
1039 cow_eof = !xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, in xfs_buffered_write_iomap_begin()
1041 if (!cow_eof && cmap.br_startoff <= offset_fsb) { in xfs_buffered_write_iomap_begin()
1047 if (imap.br_startoff <= offset_fsb) { in xfs_buffered_write_iomap_begin()
1060 xfs_trim_extent(&imap, offset_fsb, end_fsb - offset_fsb); in xfs_buffered_write_iomap_begin()
1125 ASSERT(p_end_fsb > offset_fsb); in xfs_buffered_write_iomap_begin()
1131 error = xfs_bmapi_reserve_delalloc(ip, allocfork, offset_fsb, in xfs_buffered_write_iomap_begin()
1132 end_fsb - offset_fsb, prealloc_blocks, &cmap, in xfs_buffered_write_iomap_begin()
1141 error = xfs_bmapi_reserve_delalloc(ip, allocfork, offset_fsb, in xfs_buffered_write_iomap_begin()
1142 end_fsb - offset_fsb, prealloc_blocks, &imap, &icur, in xfs_buffered_write_iomap_begin()
1174 if (imap.br_startoff <= offset_fsb) { in xfs_buffered_write_iomap_begin()
1184 xfs_trim_extent(&cmap, offset_fsb, imap.br_startoff - offset_fsb); in xfs_buffered_write_iomap_begin()
1252 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_read_iomap_begin() local
1267 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, &imap, in xfs_read_iomap_begin()
1296 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_seek_iomap_begin() local
1313 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
1317 if (imap.br_startoff <= offset_fsb) in xfs_seek_iomap_begin()
1332 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &cmap)) in xfs_seek_iomap_begin()
1334 if (cow_fsb != NULLFILEOFF && cow_fsb <= offset_fsb) { in xfs_seek_iomap_begin()
1337 xfs_trim_extent(&cmap, offset_fsb, end_fsb - offset_fsb); in xfs_seek_iomap_begin()
1354 imap.br_blockcount = cow_fsb - offset_fsb; in xfs_seek_iomap_begin()
1356 imap.br_blockcount = data_fsb - offset_fsb; in xfs_seek_iomap_begin()
1357 imap.br_startoff = offset_fsb; in xfs_seek_iomap_begin()
1362 xfs_trim_extent(&imap, offset_fsb, end_fsb - offset_fsb); in xfs_seek_iomap_begin()
1384 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_xattr_iomap_begin() local
1403 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, &imap, in xfs_xattr_iomap_begin()