Lines Matching refs:bma

1342 	struct xfs_bmalloca	*bma,  in xfs_bmap_isaeof()  argument
1349 bma->aeof = false; in xfs_bmap_isaeof()
1350 error = xfs_bmap_last_extent(NULL, bma->ip, whichfork, &rec, in xfs_bmap_isaeof()
1356 bma->aeof = true; in xfs_bmap_isaeof()
1364 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1365 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1411 struct xfs_bmalloca *bma, in xfs_bmap_add_extent_delay_real() argument
1414 struct xfs_mount *mp = bma->ip->i_mount; in xfs_bmap_add_extent_delay_real()
1415 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
1416 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real()
1432 ASSERT(!bma->cur || in xfs_bmap_add_extent_delay_real()
1433 (bma->cur->bc_ino.flags & XFS_BTCUR_BMBT_WASDEL)); in xfs_bmap_add_extent_delay_real()
1444 xfs_iext_get_extent(ifp, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1466 if (xfs_iext_peek_prev_extent(ifp, &bma->icur, &LEFT)) { in xfs_bmap_add_extent_delay_real()
1484 if (xfs_iext_peek_next_extent(ifp, &bma->icur, &RIGHT)) { in xfs_bmap_add_extent_delay_real()
1517 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1518 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1519 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1520 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1523 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1527 error = xfs_bmbt_lookup_eq(bma->cur, &RIGHT, &i); in xfs_bmap_add_extent_delay_real()
1534 error = xfs_btree_delete(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1541 error = xfs_btree_decrement(bma->cur, 0, &i); in xfs_bmap_add_extent_delay_real()
1548 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1562 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1563 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1564 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1566 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1570 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1577 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1594 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1595 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1596 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1597 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1599 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1603 error = xfs_bmbt_lookup_eq(bma->cur, &RIGHT, &i); in xfs_bmap_add_extent_delay_real()
1610 error = xfs_bmbt_update(bma->cur, &PREV); in xfs_bmap_add_extent_delay_real()
1624 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1627 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1631 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1638 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1655 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1664 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1665 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1666 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1668 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1672 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1679 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1690 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1693 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1697 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1704 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1713 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1714 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1715 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1722 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1724 (bma->cur ? bma->cur->bc_ino.allocated : 0)); in xfs_bmap_add_extent_delay_real()
1729 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1730 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state); in xfs_bmap_add_extent_delay_real()
1731 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1744 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1748 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1755 error = xfs_bmbt_update(bma->cur, &RIGHT); in xfs_bmap_add_extent_delay_real()
1761 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1767 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1768 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1769 xfs_iext_update_extent(bma->ip, state, &bma->icur, &RIGHT); in xfs_bmap_add_extent_delay_real()
1777 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1780 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1784 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1791 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1800 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1801 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1802 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1809 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1811 (bma->cur ? bma->cur->bc_ino.allocated : 0)); in xfs_bmap_add_extent_delay_real()
1815 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state); in xfs_bmap_add_extent_delay_real()
1816 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1851 nullstartblock(xfs_bmap_worst_indlen(bma->ip, in xfs_bmap_add_extent_delay_real()
1857 nullstartblock(xfs_bmap_worst_indlen(bma->ip, in xfs_bmap_add_extent_delay_real()
1859 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1861 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1862 xfs_iext_insert(bma->ip, &bma->icur, &RIGHT, state); in xfs_bmap_add_extent_delay_real()
1863 xfs_iext_insert(bma->ip, &bma->icur, &LEFT, state); in xfs_bmap_add_extent_delay_real()
1866 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1870 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1877 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1886 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1887 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1888 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1912 if (!(bma->flags & XFS_BMAPI_NORMAP)) in xfs_bmap_add_extent_delay_real()
1913 xfs_rmap_map_extent(bma->tp, bma->ip, whichfork, new); in xfs_bmap_add_extent_delay_real()
1916 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1919 ASSERT(bma->cur == NULL); in xfs_bmap_add_extent_delay_real()
1920 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1921 &bma->cur, da_old > 0, &tmp_logflags, in xfs_bmap_add_extent_delay_real()
1923 bma->logflags |= tmp_logflags; in xfs_bmap_add_extent_delay_real()
1931 if (bma->cur) { in xfs_bmap_add_extent_delay_real()
1932 da_new += bma->cur->bc_ino.allocated; in xfs_bmap_add_extent_delay_real()
1933 bma->cur->bc_ino.allocated = 0; in xfs_bmap_add_extent_delay_real()
1943 xfs_bmap_check_leaf_extents(bma->cur, bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
1946 bma->logflags |= rval; in xfs_bmap_add_extent_delay_real()
3450 #define xfs_bmap_exact_minlen_extent_alloc(bma) (-EFSCORRUPTED) argument
4054 struct xfs_bmalloca *bma) in xfs_bmap_alloc_userdata() argument
4056 struct xfs_mount *mp = bma->ip->i_mount; in xfs_bmap_alloc_userdata()
4057 int whichfork = xfs_bmapi_whichfork(bma->flags); in xfs_bmap_alloc_userdata()
4066 bma->datatype = XFS_ALLOC_NOBUSY; in xfs_bmap_alloc_userdata()
4068 bma->datatype |= XFS_ALLOC_USERDATA; in xfs_bmap_alloc_userdata()
4069 if (bma->offset == 0) in xfs_bmap_alloc_userdata()
4070 bma->datatype |= XFS_ALLOC_INITIAL_USER_DATA; in xfs_bmap_alloc_userdata()
4072 if (mp->m_dalign && bma->length >= mp->m_dalign) { in xfs_bmap_alloc_userdata()
4073 error = xfs_bmap_isaeof(bma, whichfork); in xfs_bmap_alloc_userdata()
4078 if (XFS_IS_REALTIME_INODE(bma->ip)) in xfs_bmap_alloc_userdata()
4079 return xfs_bmap_rtalloc(bma); in xfs_bmap_alloc_userdata()
4084 return xfs_bmap_exact_minlen_extent_alloc(bma); in xfs_bmap_alloc_userdata()
4086 return xfs_bmap_btalloc(bma); in xfs_bmap_alloc_userdata()
4091 struct xfs_bmalloca *bma) in xfs_bmapi_allocate() argument
4093 struct xfs_mount *mp = bma->ip->i_mount; in xfs_bmapi_allocate()
4094 int whichfork = xfs_bmapi_whichfork(bma->flags); in xfs_bmapi_allocate()
4095 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_allocate()
4099 ASSERT(bma->length > 0); in xfs_bmapi_allocate()
4105 if (bma->wasdel) { in xfs_bmapi_allocate()
4106 bma->length = (xfs_extlen_t)bma->got.br_blockcount; in xfs_bmapi_allocate()
4107 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4108 if (!xfs_iext_peek_prev_extent(ifp, &bma->icur, &bma->prev)) in xfs_bmapi_allocate()
4109 bma->prev.br_startoff = NULLFILEOFF; in xfs_bmapi_allocate()
4111 bma->length = XFS_FILBLKS_MIN(bma->length, XFS_MAX_BMBT_EXTLEN); in xfs_bmapi_allocate()
4112 if (!bma->eof) in xfs_bmapi_allocate()
4113 bma->length = XFS_FILBLKS_MIN(bma->length, in xfs_bmapi_allocate()
4114 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4117 if (bma->flags & XFS_BMAPI_CONTIG) in xfs_bmapi_allocate()
4118 bma->minlen = bma->length; in xfs_bmapi_allocate()
4120 bma->minlen = 1; in xfs_bmapi_allocate()
4122 if (bma->flags & XFS_BMAPI_METADATA) { in xfs_bmapi_allocate()
4125 error = xfs_bmap_exact_minlen_extent_alloc(bma); in xfs_bmapi_allocate()
4127 error = xfs_bmap_btalloc(bma); in xfs_bmapi_allocate()
4129 error = xfs_bmap_alloc_userdata(bma); in xfs_bmapi_allocate()
4131 if (error || bma->blkno == NULLFSBLOCK) in xfs_bmapi_allocate()
4134 if (bma->flags & XFS_BMAPI_ZERO) { in xfs_bmapi_allocate()
4135 error = xfs_zero_extent(bma->ip, bma->blkno, bma->length); in xfs_bmapi_allocate()
4140 if (ifp->if_format == XFS_DINODE_FMT_BTREE && !bma->cur) in xfs_bmapi_allocate()
4141 bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork); in xfs_bmapi_allocate()
4146 bma->nallocs++; in xfs_bmapi_allocate()
4148 if (bma->cur) in xfs_bmapi_allocate()
4149 bma->cur->bc_ino.flags = in xfs_bmapi_allocate()
4150 bma->wasdel ? XFS_BTCUR_BMBT_WASDEL : 0; in xfs_bmapi_allocate()
4152 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4153 bma->got.br_startblock = bma->blkno; in xfs_bmapi_allocate()
4154 bma->got.br_blockcount = bma->length; in xfs_bmapi_allocate()
4155 bma->got.br_state = XFS_EXT_NORM; in xfs_bmapi_allocate()
4157 if (bma->flags & XFS_BMAPI_PREALLOC) in xfs_bmapi_allocate()
4158 bma->got.br_state = XFS_EXT_UNWRITTEN; in xfs_bmapi_allocate()
4160 if (bma->wasdel) in xfs_bmapi_allocate()
4161 error = xfs_bmap_add_extent_delay_real(bma, whichfork); in xfs_bmapi_allocate()
4163 error = xfs_bmap_add_extent_hole_real(bma->tp, bma->ip, in xfs_bmapi_allocate()
4164 whichfork, &bma->icur, &bma->cur, &bma->got, in xfs_bmapi_allocate()
4165 &bma->logflags, bma->flags); in xfs_bmapi_allocate()
4167 bma->logflags |= tmp_logflags; in xfs_bmapi_allocate()
4176 xfs_iext_get_extent(ifp, &bma->icur, &bma->got); in xfs_bmapi_allocate()
4178 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4179 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4180 bma->offset + bma->length); in xfs_bmapi_allocate()
4181 ASSERT(bma->got.br_state == XFS_EXT_NORM || in xfs_bmapi_allocate()
4182 bma->got.br_state == XFS_EXT_UNWRITTEN); in xfs_bmapi_allocate()
4188 struct xfs_bmalloca *bma, in xfs_bmapi_convert_unwritten() argument
4194 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4213 if (ifp->if_format == XFS_DINODE_FMT_BTREE && !bma->cur) { in xfs_bmapi_convert_unwritten()
4214 bma->cur = xfs_bmbt_init_cursor(bma->ip->i_mount, bma->tp, in xfs_bmapi_convert_unwritten()
4215 bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4225 error = xfs_zero_extent(bma->ip, mval->br_startblock, in xfs_bmapi_convert_unwritten()
4231 error = xfs_bmap_add_extent_unwritten_real(bma->tp, bma->ip, whichfork, in xfs_bmapi_convert_unwritten()
4232 &bma->icur, &bma->cur, mval, &tmp_logflags); in xfs_bmapi_convert_unwritten()
4245 bma->logflags |= tmp_logflags | XFS_ILOG_CORE; in xfs_bmapi_convert_unwritten()
4254 xfs_iext_get_extent(ifp, &bma->icur, &bma->got); in xfs_bmapi_convert_unwritten()
4288 struct xfs_bmalloca *bma, in xfs_bmapi_finish() argument
4292 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_finish()
4294 if ((bma->logflags & xfs_ilog_fext(whichfork)) && in xfs_bmapi_finish()
4296 bma->logflags &= ~xfs_ilog_fext(whichfork); in xfs_bmapi_finish()
4297 else if ((bma->logflags & xfs_ilog_fbroot(whichfork)) && in xfs_bmapi_finish()
4299 bma->logflags &= ~xfs_ilog_fbroot(whichfork); in xfs_bmapi_finish()
4301 if (bma->logflags) in xfs_bmapi_finish()
4302 xfs_trans_log_inode(bma->tp, bma->ip, bma->logflags); in xfs_bmapi_finish()
4303 if (bma->cur) in xfs_bmapi_finish()
4304 xfs_btree_del_cursor(bma->cur, error); in xfs_bmapi_finish()
4324 struct xfs_bmalloca bma = { in xfs_bmapi_write() local
4386 if (!xfs_iext_lookup_extent(ip, ifp, bno, &bma.icur, &bma.got)) in xfs_bmapi_write()
4388 if (!xfs_iext_peek_prev_extent(ifp, &bma.icur, &bma.prev)) in xfs_bmapi_write()
4389 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4390 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_write()
4399 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4409 } else if (isnullstartblock(bma.got.br_startblock)) { in xfs_bmapi_write()
4418 bma.eof = eof; in xfs_bmapi_write()
4419 bma.conv = !!(flags & XFS_BMAPI_CONVERT); in xfs_bmapi_write()
4420 bma.wasdel = wasdelay; in xfs_bmapi_write()
4421 bma.offset = bno; in xfs_bmapi_write()
4422 bma.flags = flags; in xfs_bmapi_write()
4432 bma.length = XFS_MAX_BMBT_EXTLEN; in xfs_bmapi_write()
4434 bma.length = len; in xfs_bmapi_write()
4437 ASSERT(bma.length > 0); in xfs_bmapi_write()
4438 error = xfs_bmapi_allocate(&bma); in xfs_bmapi_write()
4441 if (bma.blkno == NULLFSBLOCK) in xfs_bmapi_write()
4449 xfs_refcount_alloc_cow_extent(tp, bma.blkno, in xfs_bmapi_write()
4450 bma.length); in xfs_bmapi_write()
4454 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno, in xfs_bmapi_write()
4458 error = xfs_bmapi_convert_unwritten(&bma, mval, len, flags); in xfs_bmapi_write()
4472 if (bno >= end || n >= *nmap || bma.nallocs >= *nmap) in xfs_bmapi_write()
4476 bma.prev = bma.got; in xfs_bmapi_write()
4477 if (!xfs_iext_next_extent(ifp, &bma.icur, &bma.got)) in xfs_bmapi_write()
4482 error = xfs_bmap_btree_to_extents(tp, ip, bma.cur, &bma.logflags, in xfs_bmapi_write()
4489 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_write()
4494 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_write()
4515 struct xfs_bmalloca bma = { NULL }; 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()
4559 if (!isnullstartblock(bma.got.br_startblock)) { in xfs_bmapi_convert_delalloc()
4560 xfs_bmbt_to_iomap(ip, iomap, &bma.got, 0, flags, in xfs_bmapi_convert_delalloc()
4566 bma.tp = tp; in xfs_bmapi_convert_delalloc()
4567 bma.ip = ip; in xfs_bmapi_convert_delalloc()
4568 bma.wasdel = true; in xfs_bmapi_convert_delalloc()
4569 bma.offset = bma.got.br_startoff; in xfs_bmapi_convert_delalloc()
4570 bma.length = max_t(xfs_filblks_t, bma.got.br_blockcount, in xfs_bmapi_convert_delalloc()
4572 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_convert_delalloc()
4587 bma.flags = XFS_BMAPI_PREALLOC; in xfs_bmapi_convert_delalloc()
4589 bma.flags |= XFS_BMAPI_COWFORK; in xfs_bmapi_convert_delalloc()
4591 if (!xfs_iext_peek_prev_extent(ifp, &bma.icur, &bma.prev)) in xfs_bmapi_convert_delalloc()
4592 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_convert_delalloc()
4594 error = xfs_bmapi_allocate(&bma); in xfs_bmapi_convert_delalloc()
4599 if (WARN_ON_ONCE(bma.blkno == NULLFSBLOCK)) in xfs_bmapi_convert_delalloc()
4602 if (WARN_ON_ONCE(!xfs_valid_startblock(ip, bma.got.br_startblock))) in xfs_bmapi_convert_delalloc()
4605 XFS_STATS_ADD(mp, xs_xstrat_bytes, XFS_FSB_TO_B(mp, bma.length)); in xfs_bmapi_convert_delalloc()
4608 ASSERT(!isnullstartblock(bma.got.br_startblock)); in xfs_bmapi_convert_delalloc()
4609 xfs_bmbt_to_iomap(ip, iomap, &bma.got, 0, flags, in xfs_bmapi_convert_delalloc()
4614 xfs_refcount_alloc_cow_extent(tp, bma.blkno, bma.length); in xfs_bmapi_convert_delalloc()
4616 error = xfs_bmap_btree_to_extents(tp, ip, bma.cur, &bma.logflags, in xfs_bmapi_convert_delalloc()
4621 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_convert_delalloc()
4627 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_convert_delalloc()