Lines Matching refs:offset_fsb
95 xfs_fileoff_t offset_fsb, in xfs_hole_to_iomap() argument
100 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap()
101 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap()
176 xfs_fileoff_t offset_fsb; in xfs_iomap_write_direct() local
196 offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_iomap_write_direct()
217 count_fsb = last_fsb - offset_fsb; in xfs_iomap_write_direct()
219 resaligned = xfs_aligned_fsb_count(offset_fsb, count_fsb, extsz); in xfs_iomap_write_direct()
280 error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb, in xfs_iomap_write_direct()
402 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_iomap_prealloc_size() local
424 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size()
535 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_file_iomap_begin_delay() local
576 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_file_iomap_begin_delay()
581 if ((flags & IOMAP_ZERO) && imap.br_startoff > offset_fsb) { in xfs_file_iomap_begin_delay()
582 xfs_hole_to_iomap(ip, iomap, offset_fsb, imap.br_startoff); in xfs_file_iomap_begin_delay()
599 cow_eof = !xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, in xfs_file_iomap_begin_delay()
601 if (!cow_eof && cmap.br_startoff <= offset_fsb) { in xfs_file_iomap_begin_delay()
608 if (imap.br_startoff <= offset_fsb) { in xfs_file_iomap_begin_delay()
621 xfs_trim_extent(&imap, offset_fsb, end_fsb - offset_fsb); in xfs_file_iomap_begin_delay()
679 ASSERT(p_end_fsb > offset_fsb); in xfs_file_iomap_begin_delay()
685 error = xfs_bmapi_reserve_delalloc(ip, whichfork, offset_fsb, in xfs_file_iomap_begin_delay()
686 end_fsb - offset_fsb, prealloc_blocks, in xfs_file_iomap_begin_delay()
715 if (imap.br_startoff > offset_fsb) { in xfs_file_iomap_begin_delay()
716 xfs_trim_extent(&cmap, offset_fsb, in xfs_file_iomap_begin_delay()
717 imap.br_startoff - offset_fsb); in xfs_file_iomap_begin_delay()
739 xfs_fileoff_t offset_fsb; in xfs_iomap_write_unwritten() local
752 offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_iomap_write_unwritten()
754 count_fsb = (xfs_filblks_t)(count_fsb - offset_fsb); in xfs_iomap_write_unwritten()
800 error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb, in xfs_iomap_write_unwritten()
811 i_size = XFS_FSB_TO_B(mp, offset_fsb + count_fsb); in xfs_iomap_write_unwritten()
838 offset_fsb += numblks_fsb; in xfs_iomap_write_unwritten()
940 xfs_fileoff_t offset_fsb, end_fsb; in xfs_file_iomap_begin() local
968 offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_file_iomap_begin()
971 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, &imap, in xfs_file_iomap_begin()
1175 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_seek_iomap_begin() local
1193 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
1197 if (imap.br_startoff <= offset_fsb) in xfs_seek_iomap_begin()
1213 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &cmap)) in xfs_seek_iomap_begin()
1215 if (cow_fsb != NULLFILEOFF && cow_fsb <= offset_fsb) { in xfs_seek_iomap_begin()
1218 xfs_trim_extent(&cmap, offset_fsb, end_fsb); in xfs_seek_iomap_begin()
1233 imap.br_blockcount = cow_fsb - offset_fsb; in xfs_seek_iomap_begin()
1235 imap.br_blockcount = data_fsb - offset_fsb; in xfs_seek_iomap_begin()
1236 imap.br_startoff = offset_fsb; in xfs_seek_iomap_begin()
1240 xfs_trim_extent(&imap, offset_fsb, end_fsb); in xfs_seek_iomap_begin()
1261 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_xattr_iomap_begin() local
1279 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, &imap, in xfs_xattr_iomap_begin()