/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_iomap.c | 95 xfs_fileoff_t offset_fsb, in xfs_hole_to_iomap() 102 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap() 103 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap() 189 xfs_fileoff_t offset_fsb, in xfs_iomap_write_direct() 206 resaligned = xfs_aligned_fsb_count(offset_fsb, count_fsb, in xfs_iomap_write_direct() 260 error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb, bmapi_flags, 0, in xfs_iomap_write_direct() 372 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_iomap_prealloc_size() local 395 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size() 507 xfs_fileoff_t offset_fsb; in xfs_iomap_write_unwritten() local 520 offset_fsb in xfs_iomap_write_unwritten() 92 xfs_hole_to_iomap( struct xfs_inode *ip, struct iomap *iomap, xfs_fileoff_t offset_fsb, xfs_fileoff_t end_fsb) xfs_hole_to_iomap() argument 187 xfs_iomap_write_direct( struct xfs_inode *ip, xfs_fileoff_t offset_fsb, xfs_fileoff_t count_fsb, struct xfs_bmbt_irec *imap) xfs_iomap_write_direct() argument 714 imap_spans_range( struct xfs_bmbt_irec *imap, xfs_fileoff_t offset_fsb, xfs_fileoff_t end_fsb) imap_spans_range() argument 738 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_direct_write_iomap_begin() local 864 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_buffered_write_iomap_begin() local 1155 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_read_iomap_begin() local 1196 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_seek_iomap_begin() local 1282 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_xattr_iomap_begin() local [all...] |
H A D | xfs_reflink.c | 244 xfs_fileoff_t offset_fsb, in xfs_reflink_convert_cow_locked() 253 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) in xfs_reflink_convert_cow_locked() 257 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked() 264 xfs_trim_extent(&got, offset_fsb, count_fsb); in xfs_reflink_convert_cow_locked() 287 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_reflink_convert_cow() local 289 xfs_filblks_t count_fsb = end_fsb - offset_fsb; in xfs_reflink_convert_cow() 295 error = xfs_reflink_convert_cow_locked(ip, offset_fsb, count_fsb); in xfs_reflink_convert_cow() 313 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent() local 323 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, cmap)) in xfs_find_trim_cow_extent() 324 cmap->br_startoff = offset_fsb in xfs_find_trim_cow_extent() 242 xfs_reflink_convert_cow_locked( struct xfs_inode *ip, xfs_fileoff_t offset_fsb, xfs_filblks_t count_fsb) xfs_reflink_convert_cow_locked() argument 354 xfs_fileoff_t offset_fsb = imap->br_startoff; xfs_reflink_allocate_cow() local 457 xfs_reflink_cancel_cow_blocks( struct xfs_inode *ip, struct xfs_trans **tpp, xfs_fileoff_t offset_fsb, xfs_fileoff_t end_fsb, bool cancel_real) xfs_reflink_cancel_cow_blocks() argument 545 xfs_fileoff_t offset_fsb; xfs_reflink_cancel_cow_range() local 597 xfs_reflink_end_cow_extent( struct xfs_inode *ip, xfs_fileoff_t offset_fsb, xfs_fileoff_t *end_fsb) xfs_reflink_end_cow_extent() argument 710 xfs_fileoff_t offset_fsb; xfs_reflink_end_cow() local [all...] |
H A D | xfs_iomap.h | 14 int xfs_iomap_write_direct(struct xfs_inode *ip, xfs_fileoff_t offset_fsb, 25 xfs_fileoff_t offset_fsb, in xfs_aligned_fsb_count() 32 div_u64_rem(offset_fsb, extsz, &align); in xfs_aligned_fsb_count() 24 xfs_aligned_fsb_count( xfs_fileoff_t offset_fsb, xfs_filblks_t count_fsb, xfs_extlen_t extsz) xfs_aligned_fsb_count() argument
|
H A D | xfs_pnfs.c | 88 xfs_fileoff_t offset_fsb, end_fsb; in xfs_fs_map_blocks() local 140 offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_fs_map_blocks() 143 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, in xfs_fs_map_blocks() 157 error = xfs_iomap_write_direct(ip, offset_fsb, in xfs_fs_map_blocks() 158 end_fsb - offset_fsb, &imap); in xfs_fs_map_blocks()
|
H A D | xfs_aops.c | 279 * extent that maps offset_fsb in wpc->iomap. 282 * backing offset_fsb, although it could have moved from the COW to the data 325 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_map_blocks() local 373 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks() 375 if (cow_fsb != NULLFILEOFF && cow_fsb <= offset_fsb) { in xfs_map_blocks() 397 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks() 403 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks() 404 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks() 405 imap.br_startoff = offset_fsb; in xfs_map_blocks()
|
H A D | xfs_reflink.h | 35 struct xfs_trans **tpp, xfs_fileoff_t offset_fsb,
|
H A D | xfs_bmap_util.c | 1325 xfs_fileoff_t offset_fsb; in xfs_swap_extent_rmap() local 1344 offset_fsb = 0; in xfs_swap_extent_rmap() 1346 count_fsb = (xfs_filblks_t)(end_fsb - offset_fsb); in xfs_swap_extent_rmap() 1351 error = xfs_bmapi_read(tip, offset_fsb, count_fsb, &tirec, in xfs_swap_extent_rmap() 1410 offset_fsb += ilen; in xfs_swap_extent_rmap()
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_iomap.c | 144 xfs_fileoff_t offset_fsb, in xfs_hole_to_iomap() 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() 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() 419 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_iomap_prealloc_size() local 442 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size() 554 xfs_fileoff_t offset_fsb; in xfs_iomap_write_unwritten() local 567 offset_fsb in xfs_iomap_write_unwritten() 141 xfs_hole_to_iomap( struct xfs_inode *ip, struct iomap *iomap, xfs_fileoff_t offset_fsb, xfs_fileoff_t end_fsb) xfs_hole_to_iomap() argument 236 xfs_iomap_write_direct( struct xfs_inode *ip, xfs_fileoff_t offset_fsb, xfs_fileoff_t count_fsb, unsigned int flags, struct xfs_bmbt_irec *imap, u64 *seq) xfs_iomap_write_direct() argument 761 imap_spans_range( struct xfs_bmbt_irec *imap, xfs_fileoff_t offset_fsb, xfs_fileoff_t end_fsb) imap_spans_range() argument 785 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_direct_write_iomap_begin() local 958 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_buffered_write_iomap_begin() local 1241 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_read_iomap_begin() local 1285 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_seek_iomap_begin() local 1373 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); xfs_xattr_iomap_begin() local [all...] |
H A D | xfs_reflink.c | 247 xfs_fileoff_t offset_fsb, in xfs_reflink_convert_cow_locked() 256 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) in xfs_reflink_convert_cow_locked() 260 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked() 267 xfs_trim_extent(&got, offset_fsb, count_fsb); in xfs_reflink_convert_cow_locked() 290 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_reflink_convert_cow() local 292 xfs_filblks_t count_fsb = end_fsb - offset_fsb; in xfs_reflink_convert_cow() 298 error = xfs_reflink_convert_cow_locked(ip, offset_fsb, count_fsb); in xfs_reflink_convert_cow() 316 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent() local 326 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, cmap)) in xfs_find_trim_cow_extent() 327 cmap->br_startoff = offset_fsb in xfs_find_trim_cow_extent() 245 xfs_reflink_convert_cow_locked( struct xfs_inode *ip, xfs_fileoff_t offset_fsb, xfs_filblks_t count_fsb) xfs_reflink_convert_cow_locked() argument 353 xfs_fileoff_t offset_fsb = imap->br_startoff; xfs_reflink_convert_unwritten() local 577 xfs_reflink_cancel_cow_blocks( struct xfs_inode *ip, struct xfs_trans **tpp, xfs_fileoff_t offset_fsb, xfs_fileoff_t end_fsb, bool cancel_real) xfs_reflink_cancel_cow_blocks() argument 667 xfs_fileoff_t offset_fsb; xfs_reflink_cancel_cow_range() local 719 xfs_reflink_end_cow_extent( struct xfs_inode *ip, xfs_fileoff_t *offset_fsb, xfs_fileoff_t end_fsb) xfs_reflink_end_cow_extent() argument 865 xfs_fileoff_t offset_fsb; xfs_reflink_end_cow() local [all...] |
H A D | xfs_iomap.h | 14 int xfs_iomap_write_direct(struct xfs_inode *ip, xfs_fileoff_t offset_fsb, 32 xfs_fileoff_t offset_fsb, in xfs_aligned_fsb_count() 39 div_u64_rem(offset_fsb, extsz, &align); in xfs_aligned_fsb_count() 31 xfs_aligned_fsb_count( xfs_fileoff_t offset_fsb, xfs_filblks_t count_fsb, xfs_extlen_t extsz) xfs_aligned_fsb_count() argument
|
H A D | xfs_pnfs.c | 122 xfs_fileoff_t offset_fsb, end_fsb; in xfs_fs_map_blocks() local 175 offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_fs_map_blocks() 178 error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, in xfs_fs_map_blocks() 193 error = xfs_iomap_write_direct(ip, offset_fsb, in xfs_fs_map_blocks() 194 end_fsb - offset_fsb, 0, &imap, &seq); in xfs_fs_map_blocks()
|
H A D | xfs_aops.c | 238 * extent that maps offset_fsb in wpc->iomap. 241 * backing offset_fsb, although it could have moved from the COW to the data 284 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_map_blocks() local 333 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks() 335 if (cow_fsb != NULLFILEOFF && cow_fsb <= offset_fsb) { in xfs_map_blocks() 357 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks() 363 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks() 364 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks() 365 imap.br_startoff = offset_fsb; in xfs_map_blocks()
|
H A D | xfs_reflink.h | 31 struct xfs_trans **tpp, xfs_fileoff_t offset_fsb,
|
H A D | xfs_bmap_util.c | 1377 xfs_fileoff_t offset_fsb; in xfs_swap_extent_rmap() local 1396 offset_fsb = 0; in xfs_swap_extent_rmap() 1398 count_fsb = (xfs_filblks_t)(end_fsb - offset_fsb); in xfs_swap_extent_rmap() 1403 error = xfs_bmapi_read(tip, offset_fsb, count_fsb, &tirec, in xfs_swap_extent_rmap() 1484 offset_fsb += ilen; in xfs_swap_extent_rmap()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 4511 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_bmapi_convert_delalloc() local 4532 if (!xfs_iext_lookup_extent(ip, ifp, offset_fsb, &bma.icur, &bma.got) || in xfs_bmapi_convert_delalloc() 4533 bma.got.br_startoff > offset_fsb) { in xfs_bmapi_convert_delalloc()
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 4514 xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_bmapi_convert_delalloc() local 4543 if (!xfs_iext_lookup_extent(ip, ifp, offset_fsb, &bma.icur, &bma.got) || in xfs_bmapi_convert_delalloc() 4544 bma.got.br_startoff > offset_fsb) { in xfs_bmapi_convert_delalloc()
|