Lines Matching refs:geo
58 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_sf_getdents() local
69 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_sf_getdents()
77 dot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
78 geo->data_entry_offset); in xfs_dir2_sf_getdents()
79 dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
80 geo->data_entry_offset + in xfs_dir2_sf_getdents()
109 off = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
130 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_sf_getdents()
149 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_block_getdents() local
156 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_block_getdents()
170 wantoff = xfs_dir2_dataptr_to_off(geo, ctx->pos); in xfs_dir2_block_getdents()
177 end = xfs_dir3_data_end_offset(geo, bp->b_addr); in xfs_dir2_block_getdents()
178 for (offset = geo->data_entry_offset; in xfs_dir2_block_getdents()
205 cook = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, offset); in xfs_dir2_block_getdents()
228 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_block_getdents()
250 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_readbuf() local
271 last_da = xfs_dir2_byte_to_da(geo, XFS_DIR2_LEAF_OFFSET); in xfs_dir2_leaf_readbuf()
272 map_off = xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, *cur_off)); in xfs_dir2_leaf_readbuf()
280 new_off = xfs_dir2_da_to_byte(geo, map.br_startoff); in xfs_dir2_leaf_readbuf()
292 ra_want = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); in xfs_dir2_leaf_readbuf()
297 next_ra = map.br_startoff + geo->fsbcount; in xfs_dir2_leaf_readbuf()
300 if (map.br_blockcount < geo->fsbcount && in xfs_dir2_leaf_readbuf()
310 next_ra = roundup((xfs_dablk_t)map.br_startoff, geo->fsbcount); in xfs_dir2_leaf_readbuf()
322 ra_want -= geo->fsbcount; in xfs_dir2_leaf_readbuf()
323 next_ra += geo->fsbcount; in xfs_dir2_leaf_readbuf()
356 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_getdents() local
388 if (!bp || offset >= geo->blksize) { in xfs_dir2_leaf_getdents()
408 offset = geo->data_entry_offset; in xfs_dir2_leaf_getdents()
409 byteoff = xfs_dir2_byte_to_off(geo, curoff); in xfs_dir2_leaf_getdents()
414 curoff += geo->data_entry_offset; in xfs_dir2_leaf_getdents()
438 xfs_dir2_db_off_to_byte(geo, in xfs_dir2_leaf_getdents()
439 xfs_dir2_byte_to_db(geo, curoff), in xfs_dir2_leaf_getdents()
441 if (offset >= geo->blksize) in xfs_dir2_leaf_getdents()
528 args.geo = dp->i_mount->m_dir_geo; in xfs_readdir()