Lines Matching refs:geo
59 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_sf_getdents() local
70 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_sf_getdents()
79 dot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
81 dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
110 off = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
127 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_sf_getdents()
150 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()
169 wantoff = xfs_dir2_dataptr_to_off(geo, ctx->pos); in xfs_dir2_block_getdents()
176 endptr = xfs_dir3_data_endp(geo, hdr); in xfs_dir2_block_getdents()
206 cook = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_block_getdents()
226 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_block_getdents()
247 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_readbuf() local
270 last_da = xfs_dir2_byte_to_da(geo, XFS_DIR2_LEAF_OFFSET); in xfs_dir2_leaf_readbuf()
271 map_off = xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, *cur_off)); in xfs_dir2_leaf_readbuf()
279 new_off = xfs_dir2_da_to_byte(geo, map.br_startoff); in xfs_dir2_leaf_readbuf()
291 ra_want = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); in xfs_dir2_leaf_readbuf()
296 next_ra = map.br_startoff + geo->fsbcount; in xfs_dir2_leaf_readbuf()
299 if (map.br_blockcount < geo->fsbcount && in xfs_dir2_leaf_readbuf()
309 next_ra = roundup((xfs_dablk_t)map.br_startoff, geo->fsbcount); in xfs_dir2_leaf_readbuf()
320 ra_want -= geo->fsbcount; in xfs_dir2_leaf_readbuf()
321 next_ra += geo->fsbcount; in xfs_dir2_leaf_readbuf()
354 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_getdents() local
386 if (!bp || ptr >= (char *)bp->b_addr + geo->blksize) { in xfs_dir2_leaf_getdents()
405 byteoff = xfs_dir2_byte_to_off(geo, curoff); in xfs_dir2_leaf_getdents()
434 xfs_dir2_db_off_to_byte(geo, in xfs_dir2_leaf_getdents()
435 xfs_dir2_byte_to_db(geo, curoff), in xfs_dir2_leaf_getdents()
437 if (ptr >= (char *)hdr + geo->blksize) { in xfs_dir2_leaf_getdents()
516 args.geo = dp->i_mount->m_dir_geo; in xfs_readdir()