Lines Matching refs:got
1535 xfs_bmbt_irec_t got; /* current extent value */ in xfs_bmap_last_before() local
1553 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmap_last_before()
1711 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real()
2933 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_hole_real()
3448 if (!isnullstartblock(ap->got.br_startblock)) { in xfs_bmap_adjacent()
3452 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3457 gotbno = ap->got.br_startblock; in xfs_bmap_adjacent()
3670 error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev, in xfs_bmap_btalloc()
3905 struct xfs_bmbt_irec *got, in xfs_bmapi_trim_map() argument
3914 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3915 *mval = *got; in xfs_bmapi_trim_map()
3916 if (isnullstartblock(got->br_startblock)) in xfs_bmapi_trim_map()
3926 if (isnullstartblock(got->br_startblock)) in xfs_bmapi_trim_map()
3929 mval->br_startblock = got->br_startblock + in xfs_bmapi_trim_map()
3930 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3939 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3940 mval->br_state = got->br_state; in xfs_bmapi_trim_map()
4014 struct xfs_bmbt_irec got; in xfs_bmapi_read() local
4051 xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, &prev); in xfs_bmapi_read()
4058 got.br_startoff = end; in xfs_bmapi_read()
4059 if (got.br_startoff > bno) { in xfs_bmapi_read()
4064 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
4074 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags); in xfs_bmapi_read()
4083 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx), &got); in xfs_bmapi_read()
4096 struct xfs_bmbt_irec *got, in xfs_bmapi_reserve_delalloc() argument
4111 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
4116 error = xfs_bmap_extsize_align(mp, got, prev, extsz, rt, eof, in xfs_bmapi_reserve_delalloc()
4157 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4158 got->br_startblock = nullstartblock(indlen); in xfs_bmapi_reserve_delalloc()
4159 got->br_blockcount = alen; in xfs_bmapi_reserve_delalloc()
4160 got->br_state = XFS_EXT_NORM; in xfs_bmapi_reserve_delalloc()
4161 xfs_bmap_add_extent_hole_delay(ip, lastx, got); in xfs_bmapi_reserve_delalloc()
4167 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, *lastx), got); in xfs_bmapi_reserve_delalloc()
4169 ASSERT(got->br_startoff <= aoff); in xfs_bmapi_reserve_delalloc()
4170 ASSERT(got->br_startoff + got->br_blockcount >= aoff + alen); in xfs_bmapi_reserve_delalloc()
4171 ASSERT(isnullstartblock(got->br_startblock)); in xfs_bmapi_reserve_delalloc()
4172 ASSERT(got->br_state == XFS_EXT_NORM); in xfs_bmapi_reserve_delalloc()
4201 struct xfs_bmbt_irec got; /* current file extent record */ in xfs_bmapi_delay() local
4234 xfs_bmap_search_extents(ip, bno, XFS_DATA_FORK, &eof, &lastx, &got, &prev); in xfs_bmapi_delay()
4239 if (eof || got.br_startoff > bno) { in xfs_bmapi_delay()
4240 error = xfs_bmapi_reserve_delalloc(ip, bno, len, &got, in xfs_bmapi_delay()
4252 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags); in xfs_bmapi_delay()
4260 prev = got; in xfs_bmapi_delay()
4262 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx), &got); in xfs_bmapi_delay()
4290 bma->length = (xfs_extlen_t)bma->got.br_blockcount; in xfs_bmapi_allocate()
4291 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4300 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4350 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4351 bma->got.br_startblock = bma->blkno; in xfs_bmapi_allocate()
4352 bma->got.br_blockcount = bma->length; in xfs_bmapi_allocate()
4353 bma->got.br_state = XFS_EXT_NORM; in xfs_bmapi_allocate()
4361 bma->got.br_state = XFS_EXT_UNWRITTEN; in xfs_bmapi_allocate()
4377 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, bma->idx), &bma->got); in xfs_bmapi_allocate()
4379 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4380 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4382 ASSERT(bma->got.br_state == XFS_EXT_NORM || in xfs_bmapi_allocate()
4383 bma->got.br_state == XFS_EXT_UNWRITTEN); in xfs_bmapi_allocate()
4436 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, bma->idx), &bma->got); in xfs_bmapi_convert_unwritten()
4539 xfs_bmap_search_extents(ip, bno, whichfork, &eof, &bma.idx, &bma.got, in xfs_bmapi_write()
4553 inhole = eof || bma.got.br_startoff > bno; in xfs_bmapi_write()
4554 wasdelay = !inhole && isnullstartblock(bma.got.br_startblock); in xfs_bmapi_write()
4589 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno, in xfs_bmapi_write()
4611 bma.prev = bma.got; in xfs_bmapi_write()
4614 &bma.got); in xfs_bmapi_write()
4702 xfs_bmbt_irec_t got; /* current extent entry */ in xfs_bmap_del_extent() local
4726 xfs_bmbt_get_all(ep, &got); in xfs_bmap_del_extent()
4727 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent()
4729 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent()
4731 delay = isnullstartblock(got.br_startblock); in xfs_bmap_del_extent()
4776 if ((error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_del_extent()
4777 got.br_startblock, got.br_blockcount, in xfs_bmap_del_extent()
4784 da_old = startblockval(got.br_startblock); in xfs_bmap_del_extent()
4793 switch (((got.br_startoff == del->br_startoff) << 1) | in xfs_bmap_del_extent()
4823 temp = got.br_blockcount - del->br_blockcount; in xfs_bmap_del_extent()
4840 got.br_blockcount - del->br_blockcount, in xfs_bmap_del_extent()
4841 got.br_state))) in xfs_bmap_del_extent()
4849 temp = got.br_blockcount - del->br_blockcount; in xfs_bmap_del_extent()
4865 if ((error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_del_extent()
4866 got.br_startblock, in xfs_bmap_del_extent()
4867 got.br_blockcount - del->br_blockcount, in xfs_bmap_del_extent()
4868 got.br_state))) in xfs_bmap_del_extent()
4876 temp = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent()
4882 new.br_state = got.br_state; in xfs_bmap_del_extent()
4888 got.br_startoff, in xfs_bmap_del_extent()
4889 got.br_startblock, temp, in xfs_bmap_del_extent()
4890 got.br_state))) in xfs_bmap_del_extent()
4910 got.br_startoff, in xfs_bmap_del_extent()
4911 got.br_startblock, in xfs_bmap_del_extent()
4921 got.br_startoff, in xfs_bmap_del_extent()
4922 got.br_startblock, in xfs_bmap_del_extent()
4923 got.br_blockcount, in xfs_bmap_del_extent()
4924 got.br_state))) in xfs_bmap_del_extent()
4931 got.br_blockcount); in xfs_bmap_del_extent()
5024 xfs_bmbt_irec_t got; /* current extent record */ in xfs_bunmapi() local
5071 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bunmapi()
5080 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5081 bno = got.br_startoff + got.br_blockcount - 1; in xfs_bunmapi()
5108 if (got.br_startoff > bno) { in xfs_bunmapi()
5112 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5119 got.br_startoff + got.br_blockcount - 1); in xfs_bunmapi()
5127 del = got; in xfs_bunmapi()
5129 if (got.br_startoff < start) { in xfs_bunmapi()
5131 del.br_blockcount -= start - got.br_startoff; in xfs_bunmapi()
5133 del.br_startblock += start - got.br_startoff; in xfs_bunmapi()
5156 if (bno < got.br_startoff) { in xfs_bunmapi()
5159 ifp, lastx), &got); in xfs_bunmapi()
5207 if (got.br_startoff > bno) { in xfs_bunmapi()
5211 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5294 del.br_startoff > got.br_startoff && in xfs_bunmapi()
5296 got.br_startoff + got.br_blockcount) { in xfs_bunmapi()
5318 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5386 struct xfs_bmbt_irec *got, /* current extent to shift */ in xfs_bmse_can_merge() argument
5391 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5398 (left->br_startblock + left->br_blockcount != got->br_startblock) || in xfs_bmse_can_merge()
5399 (left->br_state != got->br_state) || in xfs_bmse_can_merge()
5400 (left->br_blockcount + got->br_blockcount > MAXEXTLEN)) in xfs_bmse_can_merge()
5426 struct xfs_bmbt_irec got; in xfs_bmse_merge() local
5432 xfs_bmbt_get_all(gotp, &got); in xfs_bmse_merge()
5434 blockcount = left.br_blockcount + got.br_blockcount; in xfs_bmse_merge()
5438 ASSERT(xfs_bmse_can_merge(&left, &got, shift)); in xfs_bmse_merge()
5461 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, got.br_startblock, in xfs_bmse_merge()
5462 got.br_blockcount, &i); in xfs_bmse_merge()
5503 struct xfs_bmbt_irec got; in xfs_bmse_shift_one() local
5513 xfs_bmbt_get_all(gotp, &got); in xfs_bmse_shift_one()
5516 XFS_WANT_CORRUPTED_RETURN(mp, !isnullstartblock(got.br_startblock)); in xfs_bmse_shift_one()
5519 startoff = got.br_startoff - offset_shift_fsb; in xfs_bmse_shift_one()
5527 if (got.br_startoff < offset_shift_fsb) in xfs_bmse_shift_one()
5543 if (xfs_bmse_can_merge(&adj_irec, &got, in xfs_bmse_shift_one()
5550 startoff = got.br_startoff + offset_shift_fsb; in xfs_bmse_shift_one()
5561 if (startoff + got.br_blockcount > adj_irec.br_startoff) in xfs_bmse_shift_one()
5570 if (xfs_bmse_can_merge(&got, &adj_irec, offset_shift_fsb)) in xfs_bmse_shift_one()
5589 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, got.br_startblock, in xfs_bmse_shift_one()
5590 got.br_blockcount, &i); in xfs_bmse_shift_one()
5595 got.br_startoff = startoff; in xfs_bmse_shift_one()
5596 return xfs_bmbt_update(cur, got.br_startoff, got.br_startblock, in xfs_bmse_shift_one()
5597 got.br_blockcount, got.br_state); in xfs_bmse_shift_one()
5625 struct xfs_bmbt_irec got; in xfs_bmap_shift_extents() local
5684 xfs_bmbt_get_all(gotp, &got); in xfs_bmap_shift_extents()
5685 *next_fsb = got.br_startoff; in xfs_bmap_shift_extents()
5746 xfs_bmbt_get_all(gotp, &got); in xfs_bmap_shift_extents()
5747 *next_fsb = got.br_startoff; in xfs_bmap_shift_extents()
5778 struct xfs_bmbt_irec got; in xfs_bmap_split_extent_at() local
5817 xfs_bmbt_get_all(gotp, &got); in xfs_bmap_split_extent_at()
5823 if (got.br_startoff >= split_fsb) in xfs_bmap_split_extent_at()
5826 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent_at()
5828 new.br_startblock = got.br_startblock + gotblkcnt; in xfs_bmap_split_extent_at()
5829 new.br_blockcount = got.br_blockcount - gotblkcnt; in xfs_bmap_split_extent_at()
5830 new.br_state = got.br_state; in xfs_bmap_split_extent_at()
5837 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_split_extent_at()
5838 got.br_startblock, in xfs_bmap_split_extent_at()
5839 got.br_blockcount, in xfs_bmap_split_extent_at()
5847 got.br_blockcount = gotblkcnt; in xfs_bmap_split_extent_at()
5851 error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_split_extent_at()
5852 got.br_startblock, in xfs_bmap_split_extent_at()
5853 got.br_blockcount, in xfs_bmap_split_extent_at()
5854 got.br_state); in xfs_bmap_split_extent_at()