Lines Matching refs:geo
95 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir3_leaf_check_int() local
109 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int()
116 if (hdr->count > ops->leaf_max_ents(geo)) in xfs_dir3_leaf_check_int()
355 ASSERT(bno >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET) && in xfs_dir3_leaf_get_buf()
356 bno < xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir3_leaf_get_buf()
358 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf()
409 ldb = xfs_dir2_da_to_db(args->geo, blkno); in xfs_dir2_block_to_leaf()
410 ASSERT(ldb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)); in xfs_dir2_block_to_leaf()
421 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf()
449 (xfs_dir2_data_aoff_t)((char *)hdr + args->geo->blksize - in xfs_dir2_block_to_leaf()
467 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_block_to_leaf()
645 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_addname()
657 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_addname()
674 i = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); in xfs_dir2_leaf_addname()
833 xfs_dir2_db_to_da(args->geo, use_block), in xfs_dir2_leaf_addname()
895 xfs_dir2_db_off_to_dataptr(args->geo, use_block, in xfs_dir2_leaf_addname()
1071 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_bests()
1143 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_tail()
1145 (uint)(args->geo->blksize - 1)); in xfs_dir3_leaf_log_tail()
1191 xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address))); in xfs_dir2_leaf_lookup()
1237 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_lookup_int()
1266 newdb = xfs_dir2_dataptr_to_db(args->geo, in xfs_dir2_leaf_lookup_int()
1276 xfs_dir2_db_to_da(args->geo, newdb), in xfs_dir2_leaf_lookup_int()
1288 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_leaf_lookup_int()
1318 xfs_dir2_db_to_da(args->geo, cidb), in xfs_dir2_leaf_lookup_int()
1384 db = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); in xfs_dir2_leaf_removename()
1386 xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address))); in xfs_dir2_leaf_removename()
1389 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_removename()
1429 args->geo->blksize - dp->d_ops->data_entry_offset) { in xfs_dir2_leaf_removename()
1430 ASSERT(db != args->geo->datablk); in xfs_dir2_leaf_removename()
1472 else if (db != args->geo->datablk) in xfs_dir2_leaf_removename()
1520 xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address))); in xfs_dir2_leaf_replace()
1612 error = xfs_dir3_data_read(tp, dp, xfs_dir2_db_to_da(args->geo, db), in xfs_dir2_leaf_trim_data()
1618 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_trim_data()
1628 args->geo->blksize - dp->d_ops->data_entry_offset); in xfs_dir2_leaf_trim_data()
1715 fo -= args->geo->fsbcount; in xfs_dir2_node_to_leaf()
1722 while (fo > args->geo->freeblk) { in xfs_dir2_node_to_leaf()
1727 fo -= args->geo->fsbcount; in xfs_dir2_node_to_leaf()
1740 if (XFS_FSB_TO_B(mp, fo) > XFS_DIR2_LEAF_OFFSET + args->geo->blksize) in xfs_dir2_node_to_leaf()
1752 error = xfs_dir2_free_read(tp, dp, args->geo->freeblk, &fbp); in xfs_dir2_node_to_leaf()
1764 if (xfs_dir3_leaf_size(&leafhdr, freehdr.nvalid) > args->geo->blksize) { in xfs_dir2_node_to_leaf()
1784 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_node_to_leaf()
1803 xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET), in xfs_dir2_node_to_leaf()