Lines Matching refs:got

1534 	xfs_bmbt_irec_t	got;			/* current extent value */  in xfs_bmap_last_before()  local
1552 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmap_last_before()
1710 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real()
2932 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_hole_real()
3447 if (!isnullstartblock(ap->got.br_startblock)) { in xfs_bmap_adjacent()
3451 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3456 gotbno = ap->got.br_startblock; in xfs_bmap_adjacent()
3670 error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev, in xfs_bmap_btalloc()
3910 struct xfs_bmbt_irec *got, in xfs_bmapi_trim_map() argument
3919 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3920 *mval = *got; in xfs_bmapi_trim_map()
3921 if (isnullstartblock(got->br_startblock)) in xfs_bmapi_trim_map()
3931 if (isnullstartblock(got->br_startblock)) in xfs_bmapi_trim_map()
3934 mval->br_startblock = got->br_startblock + in xfs_bmapi_trim_map()
3935 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3944 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3945 mval->br_state = got->br_state; in xfs_bmapi_trim_map()
4019 struct xfs_bmbt_irec got; in xfs_bmapi_read() local
4056 xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, &prev); in xfs_bmapi_read()
4063 got.br_startoff = end; in xfs_bmapi_read()
4064 if (got.br_startoff > bno) { in xfs_bmapi_read()
4069 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
4079 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags); in xfs_bmapi_read()
4088 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx), &got); in xfs_bmapi_read()
4101 struct xfs_bmbt_irec *got, in xfs_bmapi_reserve_delalloc() argument
4116 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
4121 error = xfs_bmap_extsize_align(mp, got, prev, extsz, rt, eof, in xfs_bmapi_reserve_delalloc()
4162 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4163 got->br_startblock = nullstartblock(indlen); in xfs_bmapi_reserve_delalloc()
4164 got->br_blockcount = alen; in xfs_bmapi_reserve_delalloc()
4165 got->br_state = XFS_EXT_NORM; in xfs_bmapi_reserve_delalloc()
4166 xfs_bmap_add_extent_hole_delay(ip, lastx, got); in xfs_bmapi_reserve_delalloc()
4172 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, *lastx), got); in xfs_bmapi_reserve_delalloc()
4174 ASSERT(got->br_startoff <= aoff); in xfs_bmapi_reserve_delalloc()
4175 ASSERT(got->br_startoff + got->br_blockcount >= aoff + alen); in xfs_bmapi_reserve_delalloc()
4176 ASSERT(isnullstartblock(got->br_startblock)); in xfs_bmapi_reserve_delalloc()
4177 ASSERT(got->br_state == XFS_EXT_NORM); in xfs_bmapi_reserve_delalloc()
4206 struct xfs_bmbt_irec got; /* current file extent record */ in xfs_bmapi_delay() local
4239 xfs_bmap_search_extents(ip, bno, XFS_DATA_FORK, &eof, &lastx, &got, &prev); in xfs_bmapi_delay()
4244 if (eof || got.br_startoff > bno) { in xfs_bmapi_delay()
4245 error = xfs_bmapi_reserve_delalloc(ip, bno, len, &got, in xfs_bmapi_delay()
4257 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags); in xfs_bmapi_delay()
4265 prev = got; in xfs_bmapi_delay()
4267 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx), &got); in xfs_bmapi_delay()
4295 bma->length = (xfs_extlen_t)bma->got.br_blockcount; in xfs_bmapi_allocate()
4296 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4305 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4358 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4359 bma->got.br_startblock = bma->blkno; in xfs_bmapi_allocate()
4360 bma->got.br_blockcount = bma->length; in xfs_bmapi_allocate()
4361 bma->got.br_state = XFS_EXT_NORM; in xfs_bmapi_allocate()
4369 bma->got.br_state = XFS_EXT_UNWRITTEN; in xfs_bmapi_allocate()
4385 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, bma->idx), &bma->got); in xfs_bmapi_allocate()
4387 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4388 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4390 ASSERT(bma->got.br_state == XFS_EXT_NORM || in xfs_bmapi_allocate()
4391 bma->got.br_state == XFS_EXT_UNWRITTEN); in xfs_bmapi_allocate()
4463 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, bma->idx), &bma->got); in xfs_bmapi_convert_unwritten()
4578 xfs_bmap_search_extents(ip, bno, whichfork, &eof, &bma.idx, &bma.got, in xfs_bmapi_write()
4592 inhole = eof || bma.got.br_startoff > bno; in xfs_bmapi_write()
4593 wasdelay = !inhole && isnullstartblock(bma.got.br_startblock); in xfs_bmapi_write()
4628 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno, in xfs_bmapi_write()
4650 bma.prev = bma.got; in xfs_bmapi_write()
4653 &bma.got); in xfs_bmapi_write()
4741 xfs_bmbt_irec_t got; /* current extent entry */ in xfs_bmap_del_extent() local
4765 xfs_bmbt_get_all(ep, &got); in xfs_bmap_del_extent()
4766 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent()
4768 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent()
4770 delay = isnullstartblock(got.br_startblock); in xfs_bmap_del_extent()
4815 if ((error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_del_extent()
4816 got.br_startblock, got.br_blockcount, in xfs_bmap_del_extent()
4823 da_old = startblockval(got.br_startblock); in xfs_bmap_del_extent()
4832 switch (((got.br_startoff == del->br_startoff) << 1) | in xfs_bmap_del_extent()
4862 temp = got.br_blockcount - del->br_blockcount; in xfs_bmap_del_extent()
4879 got.br_blockcount - del->br_blockcount, in xfs_bmap_del_extent()
4880 got.br_state))) in xfs_bmap_del_extent()
4888 temp = got.br_blockcount - del->br_blockcount; in xfs_bmap_del_extent()
4904 if ((error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_del_extent()
4905 got.br_startblock, in xfs_bmap_del_extent()
4906 got.br_blockcount - del->br_blockcount, in xfs_bmap_del_extent()
4907 got.br_state))) in xfs_bmap_del_extent()
4915 temp = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent()
4921 new.br_state = got.br_state; in xfs_bmap_del_extent()
4927 got.br_startoff, in xfs_bmap_del_extent()
4928 got.br_startblock, temp, in xfs_bmap_del_extent()
4929 got.br_state))) in xfs_bmap_del_extent()
4949 got.br_startoff, in xfs_bmap_del_extent()
4950 got.br_startblock, in xfs_bmap_del_extent()
4960 got.br_startoff, in xfs_bmap_del_extent()
4961 got.br_startblock, in xfs_bmap_del_extent()
4962 got.br_blockcount, in xfs_bmap_del_extent()
4963 got.br_state))) in xfs_bmap_del_extent()
4970 got.br_blockcount); in xfs_bmap_del_extent()
5063 xfs_bmbt_irec_t got; /* current extent record */ in xfs_bunmapi() local
5110 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bunmapi()
5119 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5120 bno = got.br_startoff + got.br_blockcount - 1; in xfs_bunmapi()
5147 if (got.br_startoff > bno) { in xfs_bunmapi()
5151 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5158 got.br_startoff + got.br_blockcount - 1); in xfs_bunmapi()
5166 del = got; in xfs_bunmapi()
5168 if (got.br_startoff < start) { in xfs_bunmapi()
5170 del.br_blockcount -= start - got.br_startoff; in xfs_bunmapi()
5172 del.br_startblock += start - got.br_startoff; in xfs_bunmapi()
5195 if (bno < got.br_startoff) { in xfs_bunmapi()
5198 ifp, lastx), &got); in xfs_bunmapi()
5246 if (got.br_startoff > bno) { in xfs_bunmapi()
5250 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5333 del.br_startoff > got.br_startoff && in xfs_bunmapi()
5335 got.br_startoff + got.br_blockcount) { in xfs_bunmapi()
5357 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5425 struct xfs_bmbt_irec *got, /* current extent to shift */ in xfs_bmse_can_merge() argument
5430 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5437 (left->br_startblock + left->br_blockcount != got->br_startblock) || in xfs_bmse_can_merge()
5438 (left->br_state != got->br_state) || in xfs_bmse_can_merge()
5439 (left->br_blockcount + got->br_blockcount > MAXEXTLEN)) in xfs_bmse_can_merge()
5465 struct xfs_bmbt_irec got; in xfs_bmse_merge() local
5471 xfs_bmbt_get_all(gotp, &got); in xfs_bmse_merge()
5473 blockcount = left.br_blockcount + got.br_blockcount; in xfs_bmse_merge()
5477 ASSERT(xfs_bmse_can_merge(&left, &got, shift)); in xfs_bmse_merge()
5500 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, got.br_startblock, in xfs_bmse_merge()
5501 got.br_blockcount, &i); in xfs_bmse_merge()
5542 struct xfs_bmbt_irec got; in xfs_bmse_shift_one() local
5552 xfs_bmbt_get_all(gotp, &got); in xfs_bmse_shift_one()
5555 XFS_WANT_CORRUPTED_RETURN(mp, !isnullstartblock(got.br_startblock)); in xfs_bmse_shift_one()
5558 startoff = got.br_startoff - offset_shift_fsb; in xfs_bmse_shift_one()
5566 if (got.br_startoff < offset_shift_fsb) in xfs_bmse_shift_one()
5582 if (xfs_bmse_can_merge(&adj_irec, &got, in xfs_bmse_shift_one()
5589 startoff = got.br_startoff + offset_shift_fsb; in xfs_bmse_shift_one()
5600 if (startoff + got.br_blockcount > adj_irec.br_startoff) in xfs_bmse_shift_one()
5609 if (xfs_bmse_can_merge(&got, &adj_irec, offset_shift_fsb)) in xfs_bmse_shift_one()
5628 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, got.br_startblock, in xfs_bmse_shift_one()
5629 got.br_blockcount, &i); in xfs_bmse_shift_one()
5634 got.br_startoff = startoff; in xfs_bmse_shift_one()
5635 return xfs_bmbt_update(cur, got.br_startoff, got.br_startblock, in xfs_bmse_shift_one()
5636 got.br_blockcount, got.br_state); in xfs_bmse_shift_one()
5664 struct xfs_bmbt_irec got; in xfs_bmap_shift_extents() local
5723 xfs_bmbt_get_all(gotp, &got); in xfs_bmap_shift_extents()
5724 *next_fsb = got.br_startoff; in xfs_bmap_shift_extents()
5785 xfs_bmbt_get_all(gotp, &got); in xfs_bmap_shift_extents()
5786 *next_fsb = got.br_startoff; in xfs_bmap_shift_extents()
5817 struct xfs_bmbt_irec got; in xfs_bmap_split_extent_at() local
5856 xfs_bmbt_get_all(gotp, &got); in xfs_bmap_split_extent_at()
5862 if (got.br_startoff >= split_fsb) in xfs_bmap_split_extent_at()
5865 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent_at()
5867 new.br_startblock = got.br_startblock + gotblkcnt; in xfs_bmap_split_extent_at()
5868 new.br_blockcount = got.br_blockcount - gotblkcnt; in xfs_bmap_split_extent_at()
5869 new.br_state = got.br_state; in xfs_bmap_split_extent_at()
5876 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_split_extent_at()
5877 got.br_startblock, in xfs_bmap_split_extent_at()
5878 got.br_blockcount, in xfs_bmap_split_extent_at()
5886 got.br_blockcount = gotblkcnt; in xfs_bmap_split_extent_at()
5890 error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_split_extent_at()
5891 got.br_startblock, in xfs_bmap_split_extent_at()
5892 got.br_blockcount, in xfs_bmap_split_extent_at()
5893 got.br_state); in xfs_bmap_split_extent_at()