• Home
  • Raw
  • Download

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()
148 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 end = xfs_dir3_data_end_offset(geo, bp->b_addr); in xfs_dir2_block_getdents()
177 for (offset = geo->data_entry_offset; in xfs_dir2_block_getdents()
204 cook = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, offset); in xfs_dir2_block_getdents()
227 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_block_getdents()
249 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_readbuf() local
272 last_da = xfs_dir2_byte_to_da(geo, XFS_DIR2_LEAF_OFFSET); in xfs_dir2_leaf_readbuf()
273 map_off = xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, *cur_off)); in xfs_dir2_leaf_readbuf()
281 new_off = xfs_dir2_da_to_byte(geo, map.br_startoff); in xfs_dir2_leaf_readbuf()
293 ra_want = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); in xfs_dir2_leaf_readbuf()
298 next_ra = map.br_startoff + geo->fsbcount; in xfs_dir2_leaf_readbuf()
301 if (map.br_blockcount < geo->fsbcount && in xfs_dir2_leaf_readbuf()
311 next_ra = roundup((xfs_dablk_t)map.br_startoff, geo->fsbcount); in xfs_dir2_leaf_readbuf()
323 ra_want -= geo->fsbcount; in xfs_dir2_leaf_readbuf()
324 next_ra += geo->fsbcount; in xfs_dir2_leaf_readbuf()
356 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_getdents() local
389 if (!bp || offset >= geo->blksize) { in xfs_dir2_leaf_getdents()
406 offset = geo->data_entry_offset; in xfs_dir2_leaf_getdents()
407 byteoff = xfs_dir2_byte_to_off(geo, curoff); in xfs_dir2_leaf_getdents()
412 curoff += geo->data_entry_offset; in xfs_dir2_leaf_getdents()
436 xfs_dir2_db_off_to_byte(geo, in xfs_dir2_leaf_getdents()
437 xfs_dir2_byte_to_db(geo, curoff), in xfs_dir2_leaf_getdents()
439 if (offset >= geo->blksize) in xfs_dir2_leaf_getdents()
524 args.geo = dp->i_mount->m_dir_geo; in xfs_readdir()