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
966 ep = xfs_iext_get_ext(ifp, 0); in xfs_bmap_local_to_extents()
967 xfs_bmbt_set_allf(ep, 0, args.fsbno, 1, XFS_EXT_NORM); in xfs_bmap_local_to_extents()
1389 xfs_bmbt_rec_host_t *ep; /* extent record pointer */ in xfs_bmap_search_multi_extents() local
1402 ep = xfs_iext_bno_to_ext(ifp, bno, &lastx); in xfs_bmap_search_multi_extents()
1407 xfs_bmbt_get_all(ep, gotp); in xfs_bmap_search_multi_extents()
1414 ep = NULL; in xfs_bmap_search_multi_extents()
1417 return ep; in xfs_bmap_search_multi_extents()
1438 xfs_bmbt_rec_host_t *ep; /* extent record pointer */ in xfs_bmap_search_extents() local
1443 ep = xfs_bmap_search_multi_extents(ifp, bno, eofp, lastxp, gotp, prevp); in xfs_bmap_search_extents()
1460 return ep; in xfs_bmap_search_extents()
1501 xfs_bmbt_rec_host_t *ep = xfs_iext_get_ext(ifp, idx); in xfs_bmap_first_unused() local
1502 off = xfs_bmbt_get_startoff(ep); in xfs_bmap_first_unused()
1510 lastaddr = off + xfs_bmbt_get_blockcount(ep); in xfs_bmap_first_unused()
1532 xfs_bmbt_rec_host_t *ep; /* pointer to last extent */ in xfs_bmap_last_before() local
1552 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmap_last_before()
1554 if (eof || xfs_bmbt_get_startoff(ep) > bno) { in xfs_bmap_last_before()
1676 xfs_bmbt_rec_host_t *ep; /* ptr to fork's extent */ in xfs_bmap_one_block() local
1691 ep = xfs_iext_get_ext(ifp, 0); in xfs_bmap_one_block()
1692 xfs_bmbt_get_all(ep, &s); in xfs_bmap_one_block()
1712 xfs_bmbt_rec_host_t *ep; /* extent entry for idx */ in xfs_bmap_add_extent_delay_real() local
1746 ep = xfs_iext_get_ext(ifp, bma->idx); in xfs_bmap_add_extent_delay_real()
1747 xfs_bmbt_get_all(ep, &PREV); in xfs_bmap_add_extent_delay_real()
1896 xfs_bmbt_set_startblock(ep, new->br_startblock); in xfs_bmap_add_extent_delay_real()
1897 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_delay_real()
1928 xfs_bmbt_set_startblock(ep, new->br_startblock); in xfs_bmap_add_extent_delay_real()
1958 xfs_bmbt_set_startoff(ep, in xfs_bmap_add_extent_delay_real()
1964 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_add_extent_delay_real()
1985 xfs_bmbt_set_startblock(ep, nullstartblock(da_new)); in xfs_bmap_add_extent_delay_real()
1997 xfs_bmbt_set_startoff(ep, new_endoff); in xfs_bmap_add_extent_delay_real()
1999 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_add_extent_delay_real()
2030 ep = xfs_iext_get_ext(ifp, bma->idx + 1); in xfs_bmap_add_extent_delay_real()
2031 xfs_bmbt_set_startblock(ep, nullstartblock(da_new)); in xfs_bmap_add_extent_delay_real()
2042 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_add_extent_delay_real()
2070 xfs_bmbt_set_startblock(ep, nullstartblock(da_new)); in xfs_bmap_add_extent_delay_real()
2083 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_add_extent_delay_real()
2114 ep = xfs_iext_get_ext(ifp, bma->idx); in xfs_bmap_add_extent_delay_real()
2115 xfs_bmbt_set_startblock(ep, nullstartblock(da_new)); in xfs_bmap_add_extent_delay_real()
2145 xfs_bmbt_set_blockcount(ep, temp); /* truncate PREV */ in xfs_bmap_add_extent_delay_real()
2192 ep = xfs_iext_get_ext(ifp, bma->idx); in xfs_bmap_add_extent_delay_real()
2193 xfs_bmbt_set_startblock(ep, nullstartblock((int)temp)); in xfs_bmap_add_extent_delay_real()
2269 xfs_bmbt_rec_host_t *ep; /* extent entry for idx */ in xfs_bmap_add_extent_unwritten_real() local
2301 ep = xfs_iext_get_ext(ifp, *idx); in xfs_bmap_add_extent_unwritten_real()
2302 xfs_bmbt_get_all(ep, &PREV); in xfs_bmap_add_extent_unwritten_real()
2457 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2459 xfs_bmbt_set_state(ep, newext); in xfs_bmap_add_extent_unwritten_real()
2493 xfs_bmbt_set_state(ep, newext); in xfs_bmap_add_extent_unwritten_real()
2520 xfs_bmbt_set_startoff(ep, in xfs_bmap_add_extent_unwritten_real()
2525 xfs_bmbt_set_startblock(ep, in xfs_bmap_add_extent_unwritten_real()
2527 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2565 ASSERT(ep && xfs_bmbt_get_state(ep) == oldext); in xfs_bmap_add_extent_unwritten_real()
2566 xfs_bmbt_set_startoff(ep, new_endoff); in xfs_bmap_add_extent_unwritten_real()
2567 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2569 xfs_bmbt_set_startblock(ep, in xfs_bmap_add_extent_unwritten_real()
2603 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2645 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
2686 xfs_bmbt_set_blockcount(ep, in xfs_bmap_add_extent_unwritten_real()
4738 xfs_bmbt_rec_host_t *ep; /* current extent entry pointer */ in xfs_bmap_del_extent() local
4764 ep = xfs_iext_get_ext(ifp, *idx); in xfs_bmap_del_extent()
4765 xfs_bmbt_get_all(ep, &got); in xfs_bmap_del_extent()
4861 xfs_bmbt_set_startoff(ep, del_endoff); in xfs_bmap_del_extent()
4863 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_del_extent()
4867 xfs_bmbt_set_startblock(ep, nullstartblock((int)temp)); in xfs_bmap_del_extent()
4872 xfs_bmbt_set_startblock(ep, del_endblock); in xfs_bmap_del_extent()
4890 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_del_extent()
4894 xfs_bmbt_set_startblock(ep, nullstartblock((int)temp)); in xfs_bmap_del_extent()
4917 xfs_bmbt_set_blockcount(ep, temp); in xfs_bmap_del_extent()
4969 xfs_bmbt_set_blockcount(ep, in xfs_bmap_del_extent()
4983 xfs_bmbt_set_startblock(ep, nullstartblock((int)temp)); in xfs_bmap_del_extent()
4991 xfs_bmbt_set_startblock(ep, in xfs_bmap_del_extent()
5060 xfs_bmbt_rec_host_t *ep; /* extent record pointer */ in xfs_bunmapi() local
5110 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bunmapi()
5118 ep = xfs_iext_get_ext(ifp, --lastx); in xfs_bunmapi()
5119 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5150 ep = xfs_iext_get_ext(ifp, lastx); in xfs_bunmapi()
5151 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5165 ASSERT(ep != NULL); in xfs_bunmapi()
5248 ep = xfs_iext_get_ext(ifp, in xfs_bunmapi()
5250 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()
5351 ep = xfs_iext_get_ext(ifp, lastx); in xfs_bunmapi()
5352 if (xfs_bmbt_get_startoff(ep) > bno) { in xfs_bunmapi()
5354 ep = xfs_iext_get_ext(ifp, in xfs_bunmapi()
5357 xfs_bmbt_get_all(ep, &got); in xfs_bunmapi()