Lines Matching refs:geo

144 	struct xfs_da_geometry		*geo = mp->m_dir_geo;  in xfs_dir3_leaf_check_int()  local
149 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int()
156 if (hdr->count > geo->leaf_max_ents) in xfs_dir3_leaf_check_int()
354 ASSERT(bno >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET) && in xfs_dir3_leaf_get_buf()
355 bno < xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir3_leaf_get_buf()
357 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf()
407 ldb = xfs_dir2_da_to_db(args->geo, blkno); in xfs_dir2_block_to_leaf()
408 ASSERT(ldb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)); in xfs_dir2_block_to_leaf()
419 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf()
447 (xfs_dir2_data_aoff_t)((char *)hdr + args->geo->blksize - in xfs_dir2_block_to_leaf()
465 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_block_to_leaf()
640 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, &lbp); in xfs_dir2_leaf_addname()
652 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_addname()
669 i = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); in xfs_dir2_leaf_addname()
828 xfs_dir2_db_to_da(args->geo, use_block), in xfs_dir2_leaf_addname()
893 xfs_dir2_db_off_to_dataptr(args->geo, use_block, in xfs_dir2_leaf_addname()
1068 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_bests()
1120 args->geo->leaf_hdr_size - 1); in xfs_dir3_leaf_log_header()
1139 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_tail()
1141 (uint)(args->geo->blksize - 1)); in xfs_dir3_leaf_log_tail()
1186 xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address))); in xfs_dir2_leaf_lookup()
1231 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, &lbp); in xfs_dir2_leaf_lookup_int()
1260 newdb = xfs_dir2_dataptr_to_db(args->geo, in xfs_dir2_leaf_lookup_int()
1270 xfs_dir2_db_to_da(args->geo, newdb), in xfs_dir2_leaf_lookup_int()
1282 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_leaf_lookup_int()
1312 xfs_dir2_db_to_da(args->geo, cidb), in xfs_dir2_leaf_lookup_int()
1339 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_removename() local
1378 db = xfs_dir2_dataptr_to_db(geo, be32_to_cpu(lep->address)); in xfs_dir2_leaf_removename()
1380 xfs_dir2_dataptr_to_off(geo, be32_to_cpu(lep->address))); in xfs_dir2_leaf_removename()
1383 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir2_leaf_removename()
1427 geo->blksize - geo->data_entry_offset) { in xfs_dir2_leaf_removename()
1428 ASSERT(db != geo->datablk); in xfs_dir2_leaf_removename()
1470 else if (db != geo->datablk) in xfs_dir2_leaf_removename()
1516 xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address))); in xfs_dir2_leaf_replace()
1591 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_trim_data() local
1605 error = xfs_dir3_data_read(tp, dp, xfs_dir2_db_to_da(geo, db), 0, &dbp); in xfs_dir2_leaf_trim_data()
1610 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir2_leaf_trim_data()
1621 geo->blksize - geo->data_entry_offset); in xfs_dir2_leaf_trim_data()
1707 fo -= args->geo->fsbcount; in xfs_dir2_node_to_leaf()
1714 while (fo > args->geo->freeblk) { in xfs_dir2_node_to_leaf()
1719 fo -= args->geo->fsbcount; in xfs_dir2_node_to_leaf()
1732 if (XFS_FSB_TO_B(mp, fo) > XFS_DIR2_LEAF_OFFSET + args->geo->blksize) in xfs_dir2_node_to_leaf()
1744 error = xfs_dir2_free_read(tp, dp, args->geo->freeblk, &fbp); in xfs_dir2_node_to_leaf()
1755 if (xfs_dir3_leaf_size(&leafhdr, freehdr.nvalid) > args->geo->blksize) { in xfs_dir2_node_to_leaf()
1775 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_node_to_leaf()
1794 xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET), in xfs_dir2_node_to_leaf()