Lines Matching refs:bma
1390 struct xfs_bmalloca *bma, in xfs_bmap_isaeof() argument
1397 bma->aeof = false; in xfs_bmap_isaeof()
1398 error = xfs_bmap_last_extent(NULL, bma->ip, whichfork, &rec, in xfs_bmap_isaeof()
1404 bma->aeof = true; in xfs_bmap_isaeof()
1412 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1413 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1491 struct xfs_bmalloca *bma, in xfs_bmap_add_extent_delay_real() argument
1494 struct xfs_mount *mp = bma->ip->i_mount; in xfs_bmap_add_extent_delay_real()
1495 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
1496 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real()
1512 ASSERT(!bma->cur || in xfs_bmap_add_extent_delay_real()
1513 (bma->cur->bc_ino.flags & XFS_BTCUR_BMBT_WASDEL)); in xfs_bmap_add_extent_delay_real()
1524 xfs_iext_get_extent(ifp, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1546 if (xfs_iext_peek_prev_extent(ifp, &bma->icur, &LEFT)) { in xfs_bmap_add_extent_delay_real()
1564 if (xfs_iext_peek_next_extent(ifp, &bma->icur, &RIGHT)) { in xfs_bmap_add_extent_delay_real()
1597 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1598 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1599 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1600 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); 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, &RIGHT, &i); in xfs_bmap_add_extent_delay_real()
1614 error = xfs_btree_delete(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1621 error = xfs_btree_decrement(bma->cur, 0, &i); in xfs_bmap_add_extent_delay_real()
1628 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1642 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1643 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1644 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1646 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1650 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1657 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1674 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1675 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1676 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1677 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1679 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1683 error = xfs_bmbt_lookup_eq(bma->cur, &RIGHT, &i); in xfs_bmap_add_extent_delay_real()
1690 error = xfs_bmbt_update(bma->cur, &PREV); in xfs_bmap_add_extent_delay_real()
1704 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1707 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1711 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1718 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1735 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1744 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1745 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1746 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1748 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1752 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1759 error = xfs_bmbt_update(bma->cur, &LEFT); in xfs_bmap_add_extent_delay_real()
1770 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1773 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1777 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1784 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1793 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1794 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1795 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1802 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1804 (bma->cur ? bma->cur->bc_ino.allocated : 0)); in xfs_bmap_add_extent_delay_real()
1809 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1810 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state); in xfs_bmap_add_extent_delay_real()
1811 xfs_iext_prev(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1824 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1828 error = xfs_bmbt_lookup_eq(bma->cur, &old, &i); in xfs_bmap_add_extent_delay_real()
1835 error = xfs_bmbt_update(bma->cur, &RIGHT); in xfs_bmap_add_extent_delay_real()
1841 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1847 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1848 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1849 xfs_iext_update_extent(bma->ip, state, &bma->icur, &RIGHT); in xfs_bmap_add_extent_delay_real()
1857 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1860 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1864 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1871 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1880 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1881 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1882 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1889 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1891 (bma->cur ? bma->cur->bc_ino.allocated : 0)); in xfs_bmap_add_extent_delay_real()
1895 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state); in xfs_bmap_add_extent_delay_real()
1896 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1931 nullstartblock(xfs_bmap_worst_indlen(bma->ip, in xfs_bmap_add_extent_delay_real()
1937 nullstartblock(xfs_bmap_worst_indlen(bma->ip, in xfs_bmap_add_extent_delay_real()
1939 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1941 xfs_iext_next(ifp, &bma->icur); in xfs_bmap_add_extent_delay_real()
1942 xfs_iext_insert(bma->ip, &bma->icur, &RIGHT, state); in xfs_bmap_add_extent_delay_real()
1943 xfs_iext_insert(bma->ip, &bma->icur, &LEFT, state); in xfs_bmap_add_extent_delay_real()
1946 if (bma->cur == NULL) in xfs_bmap_add_extent_delay_real()
1950 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1957 error = xfs_btree_insert(bma->cur, &i); in xfs_bmap_add_extent_delay_real()
1966 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1967 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
1968 &bma->cur, 1, &tmp_rval, whichfork); in xfs_bmap_add_extent_delay_real()
1992 if (!(bma->flags & XFS_BMAPI_NORMAP)) in xfs_bmap_add_extent_delay_real()
1993 xfs_rmap_map_extent(bma->tp, bma->ip, whichfork, new); in xfs_bmap_add_extent_delay_real()
1996 if (xfs_bmap_needs_btree(bma->ip, whichfork)) { in xfs_bmap_add_extent_delay_real()
1999 ASSERT(bma->cur == NULL); in xfs_bmap_add_extent_delay_real()
2000 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2001 &bma->cur, da_old > 0, &tmp_logflags, in xfs_bmap_add_extent_delay_real()
2003 bma->logflags |= tmp_logflags; in xfs_bmap_add_extent_delay_real()
2011 if (bma->cur) { in xfs_bmap_add_extent_delay_real()
2012 da_new += bma->cur->bc_ino.allocated; in xfs_bmap_add_extent_delay_real()
2013 bma->cur->bc_ino.allocated = 0; in xfs_bmap_add_extent_delay_real()
2023 xfs_bmap_check_leaf_extents(bma->cur, bma->ip, whichfork); in xfs_bmap_add_extent_delay_real()
2026 bma->logflags |= rval; in xfs_bmap_add_extent_delay_real()
4058 struct xfs_bmalloca *bma) in xfs_bmap_alloc_userdata() argument
4060 struct xfs_mount *mp = bma->ip->i_mount; in xfs_bmap_alloc_userdata()
4061 int whichfork = xfs_bmapi_whichfork(bma->flags); in xfs_bmap_alloc_userdata()
4070 bma->datatype = XFS_ALLOC_NOBUSY; in xfs_bmap_alloc_userdata()
4072 bma->datatype |= XFS_ALLOC_USERDATA; in xfs_bmap_alloc_userdata()
4073 if (bma->offset == 0) in xfs_bmap_alloc_userdata()
4074 bma->datatype |= XFS_ALLOC_INITIAL_USER_DATA; in xfs_bmap_alloc_userdata()
4076 if (mp->m_dalign && bma->length >= mp->m_dalign) { in xfs_bmap_alloc_userdata()
4077 error = xfs_bmap_isaeof(bma, whichfork); in xfs_bmap_alloc_userdata()
4082 if (XFS_IS_REALTIME_INODE(bma->ip)) in xfs_bmap_alloc_userdata()
4083 return xfs_bmap_rtalloc(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, MAXEXTLEN); 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()
4123 error = xfs_bmap_btalloc(bma); in xfs_bmapi_allocate()
4125 error = xfs_bmap_alloc_userdata(bma); in xfs_bmapi_allocate()
4126 if (error || bma->blkno == NULLFSBLOCK) in xfs_bmapi_allocate()
4129 if (bma->flags & XFS_BMAPI_ZERO) { in xfs_bmapi_allocate()
4130 error = xfs_zero_extent(bma->ip, bma->blkno, bma->length); in xfs_bmapi_allocate()
4135 if ((ifp->if_flags & XFS_IFBROOT) && !bma->cur) in xfs_bmapi_allocate()
4136 bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork); in xfs_bmapi_allocate()
4141 bma->nallocs++; in xfs_bmapi_allocate()
4143 if (bma->cur) in xfs_bmapi_allocate()
4144 bma->cur->bc_ino.flags = in xfs_bmapi_allocate()
4145 bma->wasdel ? XFS_BTCUR_BMBT_WASDEL : 0; in xfs_bmapi_allocate()
4147 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4148 bma->got.br_startblock = bma->blkno; in xfs_bmapi_allocate()
4149 bma->got.br_blockcount = bma->length; in xfs_bmapi_allocate()
4150 bma->got.br_state = XFS_EXT_NORM; in xfs_bmapi_allocate()
4152 if (bma->flags & XFS_BMAPI_PREALLOC) in xfs_bmapi_allocate()
4153 bma->got.br_state = XFS_EXT_UNWRITTEN; in xfs_bmapi_allocate()
4155 if (bma->wasdel) in xfs_bmapi_allocate()
4156 error = xfs_bmap_add_extent_delay_real(bma, whichfork); in xfs_bmapi_allocate()
4158 error = xfs_bmap_add_extent_hole_real(bma->tp, bma->ip, in xfs_bmapi_allocate()
4159 whichfork, &bma->icur, &bma->cur, &bma->got, in xfs_bmapi_allocate()
4160 &bma->logflags, bma->flags); in xfs_bmapi_allocate()
4162 bma->logflags |= tmp_logflags; in xfs_bmapi_allocate()
4171 xfs_iext_get_extent(ifp, &bma->icur, &bma->got); in xfs_bmapi_allocate()
4173 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4174 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4175 bma->offset + bma->length); in xfs_bmapi_allocate()
4176 ASSERT(bma->got.br_state == XFS_EXT_NORM || in xfs_bmapi_allocate()
4177 bma->got.br_state == XFS_EXT_UNWRITTEN); in xfs_bmapi_allocate()
4183 struct xfs_bmalloca *bma, in xfs_bmapi_convert_unwritten() argument
4189 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4208 if ((ifp->if_flags & XFS_IFBROOT) && !bma->cur) { in xfs_bmapi_convert_unwritten()
4209 bma->cur = xfs_bmbt_init_cursor(bma->ip->i_mount, bma->tp, in xfs_bmapi_convert_unwritten()
4210 bma->ip, whichfork); in xfs_bmapi_convert_unwritten()
4220 error = xfs_zero_extent(bma->ip, mval->br_startblock, in xfs_bmapi_convert_unwritten()
4226 error = xfs_bmap_add_extent_unwritten_real(bma->tp, bma->ip, whichfork, in xfs_bmapi_convert_unwritten()
4227 &bma->icur, &bma->cur, mval, &tmp_logflags); in xfs_bmapi_convert_unwritten()
4240 bma->logflags |= tmp_logflags | XFS_ILOG_CORE; in xfs_bmapi_convert_unwritten()
4249 xfs_iext_get_extent(ifp, &bma->icur, &bma->got); in xfs_bmapi_convert_unwritten()
4283 struct xfs_bmalloca *bma, in xfs_bmapi_finish() argument
4287 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); in xfs_bmapi_finish()
4289 if ((bma->logflags & xfs_ilog_fext(whichfork)) && in xfs_bmapi_finish()
4291 bma->logflags &= ~xfs_ilog_fext(whichfork); in xfs_bmapi_finish()
4292 else if ((bma->logflags & xfs_ilog_fbroot(whichfork)) && in xfs_bmapi_finish()
4294 bma->logflags &= ~xfs_ilog_fbroot(whichfork); in xfs_bmapi_finish()
4296 if (bma->logflags) in xfs_bmapi_finish()
4297 xfs_trans_log_inode(bma->tp, bma->ip, bma->logflags); in xfs_bmapi_finish()
4298 if (bma->cur) in xfs_bmapi_finish()
4299 xfs_btree_del_cursor(bma->cur, error); in xfs_bmapi_finish()
4319 struct xfs_bmalloca bma = { in xfs_bmapi_write() local
4383 if (!xfs_iext_lookup_extent(ip, ifp, bno, &bma.icur, &bma.got)) in xfs_bmapi_write()
4385 if (!xfs_iext_peek_prev_extent(ifp, &bma.icur, &bma.prev)) in xfs_bmapi_write()
4386 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4387 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_write()
4396 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4406 } else if (isnullstartblock(bma.got.br_startblock)) { in xfs_bmapi_write()
4415 bma.eof = eof; in xfs_bmapi_write()
4416 bma.conv = !!(flags & XFS_BMAPI_CONVERT); in xfs_bmapi_write()
4417 bma.wasdel = wasdelay; in xfs_bmapi_write()
4418 bma.offset = bno; in xfs_bmapi_write()
4419 bma.flags = flags; in xfs_bmapi_write()
4429 bma.length = MAXEXTLEN; in xfs_bmapi_write()
4431 bma.length = len; in xfs_bmapi_write()
4434 ASSERT(bma.length > 0); in xfs_bmapi_write()
4435 error = xfs_bmapi_allocate(&bma); in xfs_bmapi_write()
4438 if (bma.blkno == NULLFSBLOCK) in xfs_bmapi_write()
4446 xfs_refcount_alloc_cow_extent(tp, bma.blkno, in xfs_bmapi_write()
4447 bma.length); in xfs_bmapi_write()
4451 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno, in xfs_bmapi_write()
4455 error = xfs_bmapi_convert_unwritten(&bma, mval, len, flags); in xfs_bmapi_write()
4469 if (bno >= end || n >= *nmap || bma.nallocs >= *nmap) in xfs_bmapi_write()
4473 bma.prev = bma.got; in xfs_bmapi_write()
4474 if (!xfs_iext_next_extent(ifp, &bma.icur, &bma.got)) in xfs_bmapi_write()
4479 error = xfs_bmap_btree_to_extents(tp, ip, bma.cur, &bma.logflags, in xfs_bmapi_write()
4486 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_write()
4491 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_write()
4512 struct xfs_bmalloca bma = { NULL }; 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()
4548 if (!isnullstartblock(bma.got.br_startblock)) { in xfs_bmapi_convert_delalloc()
4549 xfs_bmbt_to_iomap(ip, iomap, &bma.got, flags); in xfs_bmapi_convert_delalloc()
4554 bma.tp = tp; in xfs_bmapi_convert_delalloc()
4555 bma.ip = ip; in xfs_bmapi_convert_delalloc()
4556 bma.wasdel = true; in xfs_bmapi_convert_delalloc()
4557 bma.offset = bma.got.br_startoff; in xfs_bmapi_convert_delalloc()
4558 bma.length = max_t(xfs_filblks_t, bma.got.br_blockcount, MAXEXTLEN); in xfs_bmapi_convert_delalloc()
4559 bma.minleft = xfs_bmapi_minleft(tp, ip, whichfork); in xfs_bmapi_convert_delalloc()
4574 bma.flags = XFS_BMAPI_PREALLOC; in xfs_bmapi_convert_delalloc()
4576 bma.flags |= XFS_BMAPI_COWFORK; in xfs_bmapi_convert_delalloc()
4578 if (!xfs_iext_peek_prev_extent(ifp, &bma.icur, &bma.prev)) in xfs_bmapi_convert_delalloc()
4579 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_convert_delalloc()
4581 error = xfs_bmapi_allocate(&bma); in xfs_bmapi_convert_delalloc()
4586 if (WARN_ON_ONCE(bma.blkno == NULLFSBLOCK)) in xfs_bmapi_convert_delalloc()
4589 if (WARN_ON_ONCE(!xfs_valid_startblock(ip, bma.got.br_startblock))) in xfs_bmapi_convert_delalloc()
4592 XFS_STATS_ADD(mp, xs_xstrat_bytes, XFS_FSB_TO_B(mp, bma.length)); in xfs_bmapi_convert_delalloc()
4595 ASSERT(!isnullstartblock(bma.got.br_startblock)); in xfs_bmapi_convert_delalloc()
4596 xfs_bmbt_to_iomap(ip, iomap, &bma.got, flags); in xfs_bmapi_convert_delalloc()
4600 xfs_refcount_alloc_cow_extent(tp, bma.blkno, bma.length); in xfs_bmapi_convert_delalloc()
4602 error = xfs_bmap_btree_to_extents(tp, ip, bma.cur, &bma.logflags, in xfs_bmapi_convert_delalloc()
4607 xfs_bmapi_finish(&bma, whichfork, 0); in xfs_bmapi_convert_delalloc()
4613 xfs_bmapi_finish(&bma, whichfork, error); in xfs_bmapi_convert_delalloc()