Lines Matching refs:bma

1318 	struct xfs_bmalloca	*bma,  in xfs_bmap_isaeof()  argument
1325 bma->aeof = false; in xfs_bmap_isaeof()
1326 error = xfs_bmap_last_extent(NULL, bma->ip, whichfork, &rec, in xfs_bmap_isaeof()
1332 bma->aeof = true; in xfs_bmap_isaeof()
1340 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1341 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1387 struct xfs_bmalloca *bma, in xfs_bmap_add_extent_delay_real() argument
1390 struct xfs_mount *mp = bma->ip->i_mount; in xfs_bmap_add_extent_delay_real()
1391 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
1392 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real()
1408 ASSERT(!bma->cur || in xfs_bmap_add_extent_delay_real()
1409 (bma->cur->bc_ino.flags & XFS_BTCUR_BMBT_WASDEL)); in xfs_bmap_add_extent_delay_real()
1420 xfs_iext_get_extent(ifp, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1442 if (xfs_iext_peek_prev_extent(ifp, &bma->icur, &LEFT)) { in xfs_bmap_add_extent_delay_real()
1460 if (xfs_iext_peek_next_extent(ifp, &bma->icur, &RIGHT)) { in xfs_bmap_add_extent_delay_real()
1493 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1494 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1495 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1496 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1499 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1503 error = xfs_bmbt_lookup_eq(bma->cur, &RIGHT, &i); in xfs_bmap_add_extent_delay_real()
1510 error = xfs_btree_delete(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1517 error = xfs_btree_decrement(bma->cur, 0, &i); in xfs_bmap_add_extent_delay_real()
1524 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1538 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1539 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1540 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1542 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1546 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1553 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1570 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1571 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1572 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1573 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1575 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1579 error = xfs_bmbt_lookup_eq(bma->cur, &RIGHT, &i); in xfs_bmap_add_extent_delay_real()
1586 error = xfs_bmbt_update(bma->cur, &PREV); in xfs_bmap_add_extent_delay_real()
1600 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1603 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1607 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1614 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1631 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1640 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1641 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1642 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1644 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1648 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1655 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1666 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1669 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1673 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1680 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1689 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1690 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1691 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1698 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1700 (bma->cur ? bma->cur->bc_ino.allocated : 0)); in xfs_bmap_add_extent_delay_real()
1705 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1706 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state); in xfs_bmap_add_extent_delay_real()
1707 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1720 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1724 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1731 error = xfs_bmbt_update(bma->cur, &RIGHT); in xfs_bmap_add_extent_delay_real()
1737 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1743 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1744 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1745 xfs_iext_update_extent(bma->ip, state, &bma->icur, &RIGHT); in xfs_bmap_add_extent_delay_real()
1753 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1756 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1760 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1767 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1776 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1777 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1778 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1785 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1787 (bma->cur ? bma->cur->bc_ino.allocated : 0)); in xfs_bmap_add_extent_delay_real()
1791 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state); in xfs_bmap_add_extent_delay_real()
1792 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1827 nullstartblock(xfs_bmap_worst_indlen(bma->ip, in xfs_bmap_add_extent_delay_real()
1833 nullstartblock(xfs_bmap_worst_indlen(bma->ip, in xfs_bmap_add_extent_delay_real()
1835 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1837 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1838 xfs_iext_insert(bma->ip, &bma->icur, &RIGHT, state); in xfs_bmap_add_extent_delay_real()
1839 xfs_iext_insert(bma->ip, &bma->icur, &LEFT, state); in xfs_bmap_add_extent_delay_real()
1842 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1846 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1853 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1862 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1863 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1864 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1888 if (!(bma->flags & XFS_BMAPI_NORMAP)) in xfs_bmap_add_extent_delay_real()
1889 xfs_rmap_map_extent(bma->tp, bma->ip, whichfork, new); in xfs_bmap_add_extent_delay_real()
1892 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1895 ASSERT(bma->cur == NULL); in xfs_bmap_add_extent_delay_real()
1896 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1897 &bma->cur, da_old > 0, &tmp_logflags, in xfs_bmap_add_extent_delay_real()
1899 bma->logflags |= tmp_logflags; in xfs_bmap_add_extent_delay_real()
1907 if (bma->cur) { in xfs_bmap_add_extent_delay_real()
1908 da_new += bma->cur->bc_ino.allocated; in xfs_bmap_add_extent_delay_real()
1909 bma->cur->bc_ino.allocated = 0; in xfs_bmap_add_extent_delay_real()
1919 xfs_bmap_check_leaf_extents(bma->cur, bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
1922 bma->logflags |= rval; in xfs_bmap_add_extent_delay_real()
3521 #define xfs_bmap_exact_minlen_extent_alloc(bma) (-EFSCORRUPTED) argument
4048 struct xfs_bmalloca *bma) in xfs_bmap_alloc_userdata() argument
4050 struct xfs_mount *mp = bma->ip->i_mount; in xfs_bmap_alloc_userdata()
4051 int whichfork = xfs_bmapi_whichfork(bma->flags); in xfs_bmap_alloc_userdata()
4060 bma->datatype = XFS_ALLOC_NOBUSY; in xfs_bmap_alloc_userdata()
4062 bma->datatype |= XFS_ALLOC_USERDATA; in xfs_bmap_alloc_userdata()
4063 if (bma->offset == 0) in xfs_bmap_alloc_userdata()
4064 bma->datatype |= XFS_ALLOC_INITIAL_USER_DATA; in xfs_bmap_alloc_userdata()
4066 if (mp->m_dalign && bma->length >= mp->m_dalign) { in xfs_bmap_alloc_userdata()
4067 error = xfs_bmap_isaeof(bma, whichfork); in xfs_bmap_alloc_userdata()
4072 if (XFS_IS_REALTIME_INODE(bma->ip)) in xfs_bmap_alloc_userdata()
4073 return xfs_bmap_rtalloc(bma); in xfs_bmap_alloc_userdata()
4078 return xfs_bmap_exact_minlen_extent_alloc(bma); in xfs_bmap_alloc_userdata()
4080 return xfs_bmap_btalloc(bma); in xfs_bmap_alloc_userdata()
4085 struct xfs_bmalloca *bma) in xfs_bmapi_allocate() argument
4087 struct xfs_mount *mp = bma->ip->i_mount; in xfs_bmapi_allocate()
4088 int whichfork = xfs_bmapi_whichfork(bma->flags); in xfs_bmapi_allocate()
4089 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_allocate()
4093 ASSERT(bma->length > 0); in xfs_bmapi_allocate()
4099 if (bma->wasdel) { in xfs_bmapi_allocate()
4100 bma->length = (xfs_extlen_t)bma->got.br_blockcount; in xfs_bmapi_allocate()
4101 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4102 if (!xfs_iext_peek_prev_extent(ifp, &bma->icur, &bma->prev)) in xfs_bmapi_allocate()
4103 bma->prev.br_startoff = NULLFILEOFF; in xfs_bmapi_allocate()
4105 bma->length = XFS_FILBLKS_MIN(bma->length, XFS_MAX_BMBT_EXTLEN); in xfs_bmapi_allocate()
4106 if (!bma->eof) in xfs_bmapi_allocate()
4107 bma->length = XFS_FILBLKS_MIN(bma->length, in xfs_bmapi_allocate()
4108 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4111 if (bma->flags & XFS_BMAPI_CONTIG) in xfs_bmapi_allocate()
4112 bma->minlen = bma->length; in xfs_bmapi_allocate()
4114 bma->minlen = 1; in xfs_bmapi_allocate()
4116 if (bma->flags & XFS_BMAPI_METADATA) { in xfs_bmapi_allocate()
4119 error = xfs_bmap_exact_minlen_extent_alloc(bma); in xfs_bmapi_allocate()
4121 error = xfs_bmap_btalloc(bma); in xfs_bmapi_allocate()
4123 error = xfs_bmap_alloc_userdata(bma); in xfs_bmapi_allocate()
4125 if (error || bma->blkno == NULLFSBLOCK) in xfs_bmapi_allocate()
4128 if (bma->flags & XFS_BMAPI_ZERO) { in xfs_bmapi_allocate()
4129 error = xfs_zero_extent(bma->ip, bma->blkno, bma->length); in xfs_bmapi_allocate()
4134 if (ifp->if_format == XFS_DINODE_FMT_BTREE && !bma->cur) in xfs_bmapi_allocate()
4135 bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork); in xfs_bmapi_allocate()
4140 bma->nallocs++; in xfs_bmapi_allocate()
4142 if (bma->cur) in xfs_bmapi_allocate()
4143 bma->cur->bc_ino.flags = in xfs_bmapi_allocate()
4144 bma->wasdel ? XFS_BTCUR_BMBT_WASDEL : 0; in xfs_bmapi_allocate()
4146 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4147 bma->got.br_startblock = bma->blkno; in xfs_bmapi_allocate()
4148 bma->got.br_blockcount = bma->length; in xfs_bmapi_allocate()
4149 bma->got.br_state = XFS_EXT_NORM; in xfs_bmapi_allocate()
4151 if (bma->flags & XFS_BMAPI_PREALLOC) in xfs_bmapi_allocate()
4152 bma->got.br_state = XFS_EXT_UNWRITTEN; in xfs_bmapi_allocate()
4154 if (bma->wasdel) in xfs_bmapi_allocate()
4155 error = xfs_bmap_add_extent_delay_real(bma, whichfork); in xfs_bmapi_allocate()
4157 error = xfs_bmap_add_extent_hole_real(bma->tp, bma->ip, in xfs_bmapi_allocate()
4158 whichfork, &bma->icur, &bma->cur, &bma->got, in xfs_bmapi_allocate()
4159 &bma->logflags, bma->flags); in xfs_bmapi_allocate()
4161 bma->logflags |= tmp_logflags; in xfs_bmapi_allocate()
4170 xfs_iext_get_extent(ifp, &bma->icur, &bma->got); in xfs_bmapi_allocate()
4172 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4173 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4174 bma->offset + bma->length); in xfs_bmapi_allocate()
4175 ASSERT(bma->got.br_state == XFS_EXT_NORM || in xfs_bmapi_allocate()
4176 bma->got.br_state == XFS_EXT_UNWRITTEN); in xfs_bmapi_allocate()
4182 struct xfs_bmalloca *bma, in xfs_bmapi_convert_unwritten() argument
4188 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4207 if (ifp->if_format == XFS_DINODE_FMT_BTREE && !bma->cur) { in xfs_bmapi_convert_unwritten()
4208 bma->cur = xfs_bmbt_init_cursor(bma->ip->i_mount, bma->tp, in xfs_bmapi_convert_unwritten()
4209 bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4219 error = xfs_zero_extent(bma->ip, mval->br_startblock, in xfs_bmapi_convert_unwritten()
4225 error = xfs_bmap_add_extent_unwritten_real(bma->tp, bma->ip, whichfork, in xfs_bmapi_convert_unwritten()
4226 &bma->icur, &bma->cur, mval, &tmp_logflags); in xfs_bmapi_convert_unwritten()
4239 bma->logflags |= tmp_logflags | XFS_ILOG_CORE; in xfs_bmapi_convert_unwritten()
4248 xfs_iext_get_extent(ifp, &bma->icur, &bma->got); in xfs_bmapi_convert_unwritten()
4282 struct xfs_bmalloca *bma, in xfs_bmapi_finish() argument
4286 struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork); in xfs_bmapi_finish()
4288 if ((bma->logflags & xfs_ilog_fext(whichfork)) && in xfs_bmapi_finish()
4290 bma->logflags &= ~xfs_ilog_fext(whichfork); in xfs_bmapi_finish()
4291 else if ((bma->logflags & xfs_ilog_fbroot(whichfork)) && in xfs_bmapi_finish()
4293 bma->logflags &= ~xfs_ilog_fbroot(whichfork); in xfs_bmapi_finish()
4295 if (bma->logflags) in xfs_bmapi_finish()
4296 xfs_trans_log_inode(bma->tp, bma->ip, bma->logflags); in xfs_bmapi_finish()
4297 if (bma->cur) in xfs_bmapi_finish()
4298 xfs_btree_del_cursor(bma->cur, error); in xfs_bmapi_finish()
4318 struct xfs_bmalloca bma = { in xfs_bmapi_write() local
4380 if (!xfs_iext_lookup_extent(ip, ifp, bno, &bma.icur, &bma.got)) in xfs_bmapi_write()
4382 if (!xfs_iext_peek_prev_extent(ifp, &bma.icur, &bma.prev)) in xfs_bmapi_write()
4383 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4384 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_write()
4393 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4403 } else if (isnullstartblock(bma.got.br_startblock)) { in xfs_bmapi_write()
4412 bma.eof = eof; in xfs_bmapi_write()
4413 bma.conv = !!(flags & XFS_BMAPI_CONVERT); in xfs_bmapi_write()
4414 bma.wasdel = wasdelay; in xfs_bmapi_write()
4415 bma.offset = bno; in xfs_bmapi_write()
4416 bma.flags = flags; in xfs_bmapi_write()
4426 bma.length = XFS_MAX_BMBT_EXTLEN; in xfs_bmapi_write()
4428 bma.length = len; in xfs_bmapi_write()
4431 ASSERT(bma.length > 0); in xfs_bmapi_write()
4432 error = xfs_bmapi_allocate(&bma); in xfs_bmapi_write()
4435 if (bma.blkno == NULLFSBLOCK) in xfs_bmapi_write()
4443 xfs_refcount_alloc_cow_extent(tp, bma.blkno, in xfs_bmapi_write()
4444 bma.length); in xfs_bmapi_write()
4448 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno, in xfs_bmapi_write()
4452 error = xfs_bmapi_convert_unwritten(&bma, mval, len, flags); in xfs_bmapi_write()
4466 if (bno >= end || n >= *nmap || bma.nallocs >= *nmap) in xfs_bmapi_write()
4470 bma.prev = bma.got; in xfs_bmapi_write()
4471 if (!xfs_iext_next_extent(ifp, &bma.icur, &bma.got)) in xfs_bmapi_write()
4476 error = xfs_bmap_btree_to_extents(tp, ip, bma.cur, &bma.logflags, in xfs_bmapi_write()
4483 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_write()
4488 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_write()
4509 struct xfs_bmalloca bma = { NULL }; in xfs_bmapi_convert_delalloc() local
4537 if (!xfs_iext_lookup_extent(ip, ifp, offset_fsb, &bma.icur, &bma.got) || in xfs_bmapi_convert_delalloc()
4538 bma.got.br_startoff > offset_fsb) { in xfs_bmapi_convert_delalloc()
4553 if (!isnullstartblock(bma.got.br_startblock)) { in xfs_bmapi_convert_delalloc()
4554 xfs_bmbt_to_iomap(ip, iomap, &bma.got, 0, flags); in xfs_bmapi_convert_delalloc()
4559 bma.tp = tp; in xfs_bmapi_convert_delalloc()
4560 bma.ip = ip; in xfs_bmapi_convert_delalloc()
4561 bma.wasdel = true; in xfs_bmapi_convert_delalloc()
4562 bma.offset = bma.got.br_startoff; in xfs_bmapi_convert_delalloc()
4563 bma.length = max_t(xfs_filblks_t, bma.got.br_blockcount, in xfs_bmapi_convert_delalloc()
4565 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_convert_delalloc()
4580 bma.flags = XFS_BMAPI_PREALLOC; in xfs_bmapi_convert_delalloc()
4582 bma.flags |= XFS_BMAPI_COWFORK; in xfs_bmapi_convert_delalloc()
4584 if (!xfs_iext_peek_prev_extent(ifp, &bma.icur, &bma.prev)) in xfs_bmapi_convert_delalloc()
4585 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_convert_delalloc()
4587 error = xfs_bmapi_allocate(&bma); in xfs_bmapi_convert_delalloc()
4592 if (WARN_ON_ONCE(bma.blkno == NULLFSBLOCK)) in xfs_bmapi_convert_delalloc()
4595 if (WARN_ON_ONCE(!xfs_valid_startblock(ip, bma.got.br_startblock))) in xfs_bmapi_convert_delalloc()
4598 XFS_STATS_ADD(mp, xs_xstrat_bytes, XFS_FSB_TO_B(mp, bma.length)); in xfs_bmapi_convert_delalloc()
4601 ASSERT(!isnullstartblock(bma.got.br_startblock)); in xfs_bmapi_convert_delalloc()
4602 xfs_bmbt_to_iomap(ip, iomap, &bma.got, 0, flags); in xfs_bmapi_convert_delalloc()
4606 xfs_refcount_alloc_cow_extent(tp, bma.blkno, bma.length); in xfs_bmapi_convert_delalloc()
4608 error = xfs_bmap_btree_to_extents(tp, ip, bma.cur, &bma.logflags, in xfs_bmapi_convert_delalloc()
4613 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_convert_delalloc()
4619 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_convert_delalloc()