Lines Matching refs:geo
40 xfs_dir2_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdb() argument
42 return xfs_dir2_byte_to_db(geo, XFS_DIR2_FREE_OFFSET) + in xfs_dir2_db_to_fdb()
43 (db / geo->free_max_bests); in xfs_dir2_db_to_fdb()
50 xfs_dir2_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdindex() argument
52 return db % geo->free_max_bests; in xfs_dir2_db_to_fdindex()
329 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir3_free_get_buf()
396 args->geo->free_hdr_size - 1); in xfs_dir2_free_log_header()
432 ASSERT(fdb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir2_leaf_to_node()
442 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_to_node()
444 (uint)dp->i_d.di_size / args->geo->blksize) { in xfs_dir2_leaf_to_node()
530 if (leafhdr.count == args->geo->leaf_max_ents) { in xfs_dir2_leafn_add()
565 lep->address = cpu_to_be32(xfs_dir2_db_off_to_dataptr(args->geo, in xfs_dir2_leafn_add()
687 newdb = xfs_dir2_dataptr_to_db(args->geo, in xfs_dir2_leafn_lookup_for_addname()
705 newfdb = xfs_dir2_db_to_fdb(args->geo, newdb); in xfs_dir2_leafn_lookup_for_addname()
717 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_addname()
729 fi = xfs_dir2_db_to_fdindex(args->geo, curdb); in xfs_dir2_leafn_lookup_for_addname()
835 newdb = xfs_dir2_dataptr_to_db(args->geo, in xfs_dir2_leafn_lookup_for_entry()
861 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_entry()
874 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_leafn_lookup_for_entry()
1268 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leafn_remove() local
1299 db = xfs_dir2_dataptr_to_db(geo, be32_to_cpu(lep->address)); in xfs_dir2_leafn_remove()
1301 off = xfs_dir2_dataptr_to_off(geo, be32_to_cpu(lep->address)); in xfs_dir2_leafn_remove()
1352 fdb = xfs_dir2_db_to_fdb(geo, db); in xfs_dir2_leafn_remove()
1353 error = xfs_dir2_free_read(tp, dp, xfs_dir2_db_to_da(geo, fdb), in xfs_dir2_leafn_remove()
1363 ASSERT(freehdr.firstdb == geo->free_max_bests * in xfs_dir2_leafn_remove()
1364 (fdb - xfs_dir2_byte_to_db(geo, XFS_DIR2_FREE_OFFSET))); in xfs_dir2_leafn_remove()
1370 findex = xfs_dir2_db_to_fdindex(geo, db); in xfs_dir2_leafn_remove()
1376 if (longest == geo->blksize - geo->data_entry_offset) { in xfs_dir2_leafn_remove()
1408 *rval = (geo->leaf_hdr_size + in xfs_dir2_leafn_remove()
1410 geo->magicpct; in xfs_dir2_leafn_remove()
1441 error = xfs_dir3_leaf_get_buf(args, xfs_dir2_da_to_db(args->geo, blkno), in xfs_dir2_leafn_split()
1514 bytes = state->args->geo->leaf_hdr_size + count * sizeof(ents[0]); in xfs_dir2_leafn_toosmall()
1515 if (bytes > (state->args->geo->blksize >> 1)) { in xfs_dir2_leafn_toosmall()
1567 bytes = state->args->geo->blksize - in xfs_dir2_leafn_toosmall()
1568 (state->args->geo->blksize >> 2); in xfs_dir2_leafn_toosmall()
1711 fbno = xfs_dir2_db_to_fdb(args->geo, *dbno); in xfs_dir2_node_add_datablk()
1713 xfs_dir2_db_to_da(args->geo, fbno), &fbp); in xfs_dir2_node_add_datablk()
1727 xfs_dir2_db_to_fdb(args->geo, *dbno) != in xfs_dir2_node_add_datablk()
1732 (long long)xfs_dir2_db_to_fdb(args->geo, *dbno), in xfs_dir2_node_add_datablk()
1752 hdr->firstdb = (fbno - xfs_dir2_byte_to_db(args->geo, in xfs_dir2_node_add_datablk()
1754 args->geo->free_max_bests; in xfs_dir2_node_add_datablk()
1760 *findex = xfs_dir2_db_to_fdindex(args->geo, *dbno); in xfs_dir2_node_add_datablk()
1764 ASSERT(*findex < args->geo->free_max_bests); in xfs_dir2_node_add_datablk()
1845 lastfbno = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)fo); in xfs_dir2_node_find_freeblk()
1846 firstfbno = xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET); in xfs_dir2_node_find_freeblk()
1859 xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir2_node_find_freeblk()
1945 xfs_dir2_db_to_da(args->geo, dbno), in xfs_dir2_node_addname_int()
2244 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_node_replace()
2321 xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)fo), bp); in xfs_dir2_node_trim_free()