Lines Matching refs:geo
256 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir3_free_get_buf()
363 ASSERT(fdb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir2_leaf_to_node()
374 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_to_node()
376 (uint)dp->i_d.di_size / args->geo->blksize) in xfs_dir2_leaf_to_node()
458 if (leafhdr.count == dp->d_ops->leaf_max_ents(args->geo)) { in xfs_dir2_leafn_add()
493 lep->address = cpu_to_be32(xfs_dir2_db_off_to_dataptr(args->geo, in xfs_dir2_leafn_add()
622 newdb = xfs_dir2_dataptr_to_db(args->geo, in xfs_dir2_leafn_lookup_for_addname()
640 newfdb = dp->d_ops->db_to_fdb(args->geo, newdb); in xfs_dir2_leafn_lookup_for_addname()
652 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_addname()
664 fi = dp->d_ops->db_to_fdindex(args->geo, curdb); in xfs_dir2_leafn_lookup_for_addname()
770 newdb = xfs_dir2_dataptr_to_db(args->geo, in xfs_dir2_leafn_lookup_for_entry()
796 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_entry()
809 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_leafn_lookup_for_entry()
1236 db = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); in xfs_dir2_leafn_remove()
1238 off = xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address)); in xfs_dir2_leafn_remove()
1288 fdb = dp->d_ops->db_to_fdb(args->geo, db); in xfs_dir2_leafn_remove()
1290 xfs_dir2_db_to_da(args->geo, fdb), in xfs_dir2_leafn_remove()
1299 ASSERT(freehdr.firstdb == dp->d_ops->free_max_bests(args->geo) * in xfs_dir2_leafn_remove()
1300 (fdb - xfs_dir2_byte_to_db(args->geo, in xfs_dir2_leafn_remove()
1307 findex = dp->d_ops->db_to_fdindex(args->geo, db); in xfs_dir2_leafn_remove()
1313 if (longest == args->geo->blksize - in xfs_dir2_leafn_remove()
1348 args->geo->magicpct; in xfs_dir2_leafn_remove()
1379 error = xfs_dir3_leaf_get_buf(args, xfs_dir2_da_to_db(args->geo, blkno), in xfs_dir2_leafn_split()
1453 if (bytes > (state->args->geo->blksize >> 1)) { in xfs_dir2_leafn_toosmall()
1506 bytes = state->args->geo->blksize - in xfs_dir2_leafn_toosmall()
1507 (state->args->geo->blksize >> 2); in xfs_dir2_leafn_toosmall()
1653 fbno = dp->d_ops->db_to_fdb(args->geo, *dbno); in xfs_dir2_node_add_datablk()
1655 xfs_dir2_db_to_da(args->geo, fbno), &fbp); in xfs_dir2_node_add_datablk()
1668 if (dp->d_ops->db_to_fdb(args->geo, *dbno) != fbno) { in xfs_dir2_node_add_datablk()
1672 (long long)dp->d_ops->db_to_fdb(args->geo, *dbno), in xfs_dir2_node_add_datablk()
1695 freehdr.firstdb = (fbno - xfs_dir2_byte_to_db(args->geo, in xfs_dir2_node_add_datablk()
1697 dp->d_ops->free_max_bests(args->geo); in xfs_dir2_node_add_datablk()
1705 *findex = dp->d_ops->db_to_fdindex(args->geo, *dbno); in xfs_dir2_node_add_datablk()
1709 ASSERT(*findex < dp->d_ops->free_max_bests(args->geo)); in xfs_dir2_node_add_datablk()
1796 lastfbno = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)fo); in xfs_dir2_node_find_freeblk()
1797 firstfbno = xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET); in xfs_dir2_node_find_freeblk()
1810 xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir2_node_find_freeblk()
1900 xfs_dir2_db_to_da(args->geo, dbno), in xfs_dir2_node_addname_int()
2209 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_node_replace()
2286 xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)fo), bp); in xfs_dir2_node_trim_free()