Lines Matching refs:offset_fsb
246 xfs_fileoff_t offset_fsb, in xfs_reflink_convert_cow_locked() argument
255 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) in xfs_reflink_convert_cow_locked()
259 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked()
266 xfs_trim_extent(&got, offset_fsb, count_fsb); in xfs_reflink_convert_cow_locked()
289 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_reflink_convert_cow() local
291 xfs_filblks_t count_fsb = end_fsb - offset_fsb; in xfs_reflink_convert_cow()
297 error = xfs_reflink_convert_cow_locked(ip, offset_fsb, count_fsb); in xfs_reflink_convert_cow()
314 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent() local
325 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) in xfs_find_trim_cow_extent()
326 got.br_startoff = offset_fsb + count_fsb; in xfs_find_trim_cow_extent()
327 if (got.br_startoff > offset_fsb) { in xfs_find_trim_cow_extent()
340 xfs_trim_extent(&got, offset_fsb, count_fsb); in xfs_find_trim_cow_extent()
356 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_reflink_allocate_cow() local
430 xfs_trim_extent(imap, offset_fsb, count_fsb); in xfs_reflink_allocate_cow()
439 return xfs_reflink_convert_cow_locked(ip, offset_fsb, count_fsb); in xfs_reflink_allocate_cow()
462 xfs_fileoff_t offset_fsb, in xfs_reflink_cancel_cow_blocks() argument
477 while (got.br_startoff + got.br_blockcount > offset_fsb) { in xfs_reflink_cancel_cow_blocks()
479 xfs_trim_extent(&del, offset_fsb, end_fsb - offset_fsb); in xfs_reflink_cancel_cow_blocks()
547 xfs_fileoff_t offset_fsb; in xfs_reflink_cancel_cow_range() local
554 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_cancel_cow_range()
570 error = xfs_reflink_cancel_cow_blocks(ip, &tp, offset_fsb, end_fsb, in xfs_reflink_cancel_cow_range()
601 xfs_fileoff_t offset_fsb, in xfs_reflink_end_cow_extent() argument
615 *end_fsb = offset_fsb; in xfs_reflink_end_cow_extent()
639 got.br_startoff + got.br_blockcount <= offset_fsb) { in xfs_reflink_end_cow_extent()
640 *end_fsb = offset_fsb; in xfs_reflink_end_cow_extent()
651 xfs_trim_extent(&del, offset_fsb, *end_fsb - offset_fsb); in xfs_reflink_end_cow_extent()
712 xfs_fileoff_t offset_fsb; in xfs_reflink_end_cow() local
718 offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset); in xfs_reflink_end_cow()
753 while (end_fsb > offset_fsb && !error) in xfs_reflink_end_cow()
754 error = xfs_reflink_end_cow_extent(ip, offset_fsb, &end_fsb); in xfs_reflink_end_cow()