Lines Matching refs:ep
346 xfs_bmbt_rec_t *ep; /* pointer to current extent */ in xfs_bmap_check_leaf_extents() local
435 ep = XFS_BMBT_REC_ADDR(mp, block, 1); in xfs_bmap_check_leaf_extents()
439 xfs_bmbt_disk_get_startoff(ep)); in xfs_bmap_check_leaf_extents()
443 ASSERT(xfs_bmbt_disk_get_startoff(ep) + in xfs_bmap_check_leaf_extents()
444 xfs_bmbt_disk_get_blockcount(ep) <= in xfs_bmap_check_leaf_extents()
446 ep = nextp; in xfs_bmap_check_leaf_extents()
449 last = *ep; in xfs_bmap_check_leaf_extents()
734 xfs_bmbt_rec_host_t *ep; /* extent record pointer */ in xfs_bmap_extents_to_btree() local
829 ep = xfs_iext_get_ext(ifp, i); in xfs_bmap_extents_to_btree()
830 if (!isnullstartblock(xfs_bmbt_get_startblock(ep))) { in xfs_bmap_extents_to_btree()
831 arp->l0 = cpu_to_be64(ep->l0); in xfs_bmap_extents_to_btree()
832 arp->l1 = cpu_to_be64(ep->l1); in xfs_bmap_extents_to_btree()
903 xfs_bmbt_rec_host_t *ep; /* extent record pointer */ in xfs_bmap_local_to_extents() local
964 ep = xfs_iext_get_ext(ifp, 0); in xfs_bmap_local_to_extents()
965 xfs_bmbt_set_allf(ep, 0, args.fsbno, 1, XFS_EXT_NORM); in xfs_bmap_local_to_extents()
1390 xfs_bmbt_rec_host_t *ep; /* extent record pointer */ in xfs_bmap_search_multi_extents() local
1403 ep = xfs_iext_bno_to_ext(ifp, bno, &lastx); in xfs_bmap_search_multi_extents()
1408 xfs_bmbt_get_all(ep, gotp); in xfs_bmap_search_multi_extents()
1415 ep = NULL; in xfs_bmap_search_multi_extents()
1418 return ep; in xfs_bmap_search_multi_extents()
1439 xfs_bmbt_rec_host_t *ep; /* extent record pointer */ in xfs_bmap_search_extents() local
1444 ep = xfs_bmap_search_multi_extents(ifp, bno, eofp, lastxp, gotp, prevp); in xfs_bmap_search_extents()
1461 return ep; in xfs_bmap_search_extents()
1502 xfs_bmbt_rec_host_t *ep = xfs_iext_get_ext(ifp, idx); in xfs_bmap_first_unused() local
1503 off = xfs_bmbt_get_startoff(ep); in xfs_bmap_first_unused()
1511 lastaddr = off + xfs_bmbt_get_blockcount(ep); in xfs_bmap_first_unused()
1533 xfs_bmbt_rec_host_t *ep; /* pointer to last extent */ in xfs_bmap_last_before() local
1553 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmap_last_before()
1555 if (eof || xfs_bmbt_get_startoff(ep) > bno) { in xfs_bmap_last_before()
1677 xfs_bmbt_rec_host_t *ep; /* ptr to fork's extent */ in xfs_bmap_one_block() local
1692 ep = xfs_iext_get_ext(ifp, 0); in xfs_bmap_one_block()
1693 xfs_bmbt_get_all(ep, &s); in xfs_bmap_one_block()
1713 xfs_bmbt_rec_host_t *ep; /* extent entry for idx */ in xfs_bmap_add_extent_delay_real() local
1747 ep = xfs_iext_get_ext(ifp, bma->idx); in xfs_bmap_add_extent_delay_real()
1748 xfs_bmbt_get_all(ep, &PREV); in xfs_bmap_add_extent_delay_real()
1897 xfs_bmbt_set_startblock(ep, new->br_startblock); in xfs_bmap_add_extent_delay_real()
1898 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_delay_real()
1929 xfs_bmbt_set_startblock(ep, new->br_startblock); in xfs_bmap_add_extent_delay_real()
1959 xfs_bmbt_set_startoff(ep, in xfs_bmap_add_extent_delay_real()
1965 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_add_extent_delay_real()
1986 xfs_bmbt_set_startblock(ep, nullstartblock(da_new)); in xfs_bmap_add_extent_delay_real()
1998 xfs_bmbt_set_startoff(ep, new_endoff); in xfs_bmap_add_extent_delay_real()
2000 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_add_extent_delay_real()
2031 ep = xfs_iext_get_ext(ifp, bma->idx + 1); in xfs_bmap_add_extent_delay_real()
2032 xfs_bmbt_set_startblock(ep, nullstartblock(da_new)); in xfs_bmap_add_extent_delay_real()
2043 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_add_extent_delay_real()
2071 xfs_bmbt_set_startblock(ep, nullstartblock(da_new)); in xfs_bmap_add_extent_delay_real()
2084 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_add_extent_delay_real()
2115 ep = xfs_iext_get_ext(ifp, bma->idx); in xfs_bmap_add_extent_delay_real()
2116 xfs_bmbt_set_startblock(ep, nullstartblock(da_new)); in xfs_bmap_add_extent_delay_real()
2146 xfs_bmbt_set_blockcount(ep, temp); /* truncate PREV */ in xfs_bmap_add_extent_delay_real()
2193 ep = xfs_iext_get_ext(ifp, bma->idx); in xfs_bmap_add_extent_delay_real()
2194 xfs_bmbt_set_startblock(ep, nullstartblock((int)temp)); in xfs_bmap_add_extent_delay_real()
2270 xfs_bmbt_rec_host_t *ep; /* extent entry for idx */ in xfs_bmap_add_extent_unwritten_real() local
2302 ep = xfs_iext_get_ext(ifp, *idx); in xfs_bmap_add_extent_unwritten_real()
2303 xfs_bmbt_get_all(ep, &PREV); in xfs_bmap_add_extent_unwritten_real()
2458 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2460 xfs_bmbt_set_state(ep, newext); in xfs_bmap_add_extent_unwritten_real()
2494 xfs_bmbt_set_state(ep, newext); in xfs_bmap_add_extent_unwritten_real()
2521 xfs_bmbt_set_startoff(ep, in xfs_bmap_add_extent_unwritten_real()
2526 xfs_bmbt_set_startblock(ep, in xfs_bmap_add_extent_unwritten_real()
2528 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2566 ASSERT(ep && xfs_bmbt_get_state(ep) == oldext); in xfs_bmap_add_extent_unwritten_real()
2567 xfs_bmbt_set_startoff(ep, new_endoff); in xfs_bmap_add_extent_unwritten_real()
2568 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2570 xfs_bmbt_set_startblock(ep, in xfs_bmap_add_extent_unwritten_real()
2604 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2646 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2687 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
4699 xfs_bmbt_rec_host_t *ep; /* current extent entry pointer */ in xfs_bmap_del_extent() local
4725 ep = xfs_iext_get_ext(ifp, *idx); in xfs_bmap_del_extent()
4726 xfs_bmbt_get_all(ep, &got); in xfs_bmap_del_extent()
4822 xfs_bmbt_set_startoff(ep, del_endoff); in xfs_bmap_del_extent()
4824 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_del_extent()
4828 xfs_bmbt_set_startblock(ep, nullstartblock((int)temp)); in xfs_bmap_del_extent()
4833 xfs_bmbt_set_startblock(ep, del_endblock); in xfs_bmap_del_extent()
4851 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_del_extent()
4855 xfs_bmbt_set_startblock(ep, nullstartblock((int)temp)); in xfs_bmap_del_extent()
4878 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_del_extent()
4930 xfs_bmbt_set_blockcount(ep, in xfs_bmap_del_extent()
4944 xfs_bmbt_set_startblock(ep, nullstartblock((int)temp)); in xfs_bmap_del_extent()
4952 xfs_bmbt_set_startblock(ep, in xfs_bmap_del_extent()
5021 xfs_bmbt_rec_host_t *ep; /* extent record pointer */ in xfs_bunmapi() local
5071 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bunmapi()
5079 ep = xfs_iext_get_ext(ifp, --lastx); in xfs_bunmapi()
5080 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5111 ep = xfs_iext_get_ext(ifp, lastx); in xfs_bunmapi()
5112 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5126 ASSERT(ep != NULL); in xfs_bunmapi()
5209 ep = xfs_iext_get_ext(ifp, in xfs_bunmapi()
5211 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5312 ep = xfs_iext_get_ext(ifp, lastx); in xfs_bunmapi()
5313 if (xfs_bmbt_get_startoff(ep) > bno) { in xfs_bunmapi()
5315 ep = xfs_iext_get_ext(ifp, in xfs_bunmapi()
5318 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()