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()
948 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_buffered_write_iomap_begin() local
995 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin()
1001 imap.br_startoff > offset_fsb) { in xfs_buffered_write_iomap_begin()
1002 xfs_hole_to_iomap(ip, iomap, offset_fsb, imap.br_startoff); in xfs_buffered_write_iomap_begin()
1011 if ((flags & IOMAP_ZERO) && imap.br_startoff <= offset_fsb && in xfs_buffered_write_iomap_begin()
1015 if (offset_fsb >= eof_fsb) in xfs_buffered_write_iomap_begin()
1019 xfs_trim_extent(&imap, offset_fsb, in xfs_buffered_write_iomap_begin()
1020 end_fsb - offset_fsb); in xfs_buffered_write_iomap_begin()
1037 cow_eof = !xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, in xfs_buffered_write_iomap_begin()
1039 if (!cow_eof && cmap.br_startoff <= offset_fsb) { in xfs_buffered_write_iomap_begin()
1045 if (imap.br_startoff <= offset_fsb) { in xfs_buffered_write_iomap_begin()
1058 xfs_trim_extent(&imap, offset_fsb, end_fsb - offset_fsb); in xfs_buffered_write_iomap_begin()
1123 ASSERT(p_end_fsb > offset_fsb); in xfs_buffered_write_iomap_begin()
1129 error = xfs_bmapi_reserve_delalloc(ip, allocfork, offset_fsb, in xfs_buffered_write_iomap_begin()
1130 end_fsb - offset_fsb, prealloc_blocks, &cmap, in xfs_buffered_write_iomap_begin()
1139 error = xfs_bmapi_reserve_delalloc(ip, allocfork, offset_fsb, in xfs_buffered_write_iomap_begin()
1140 end_fsb - offset_fsb, prealloc_blocks, &imap, &icur, in xfs_buffered_write_iomap_begin()
1172 if (imap.br_startoff <= offset_fsb) { in xfs_buffered_write_iomap_begin()
1182 xfs_trim_extent(&cmap, offset_fsb, imap.br_startoff - offset_fsb); in xfs_buffered_write_iomap_begin()
1250 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_read_iomap_begin() local
1265 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, &imap, in xfs_read_iomap_begin()
1294 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_seek_iomap_begin() local
1311 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
1315 if (imap.br_startoff <= offset_fsb) in xfs_seek_iomap_begin()
1330 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &cmap)) in xfs_seek_iomap_begin()
1332 if (cow_fsb != NULLFILEOFF && cow_fsb <= offset_fsb) { in xfs_seek_iomap_begin()
1335 xfs_trim_extent(&cmap, offset_fsb, end_fsb - offset_fsb); in xfs_seek_iomap_begin()
1352 imap.br_blockcount = cow_fsb - offset_fsb; in xfs_seek_iomap_begin()
1354 imap.br_blockcount = data_fsb - offset_fsb; in xfs_seek_iomap_begin()
1355 imap.br_startoff = offset_fsb; in xfs_seek_iomap_begin()
1360 xfs_trim_extent(&imap, offset_fsb, end_fsb - offset_fsb); in xfs_seek_iomap_begin()
1382 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_xattr_iomap_begin() local
1401 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, &imap, in xfs_xattr_iomap_begin()