• Home
  • Raw
  • Download

Lines Matching refs:ctx

47 	struct dir_context	*ctx)  in xfs_dir2_sf_getdents()  argument
69 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_sf_getdents()
86 if (ctx->pos <= dot_offset) { in xfs_dir2_sf_getdents()
87 ctx->pos = dot_offset & 0x7fffffff; in xfs_dir2_sf_getdents()
88 if (!dir_emit(ctx, ".", 1, dp->i_ino, DT_DIR)) in xfs_dir2_sf_getdents()
95 if (ctx->pos <= dotdot_offset) { in xfs_dir2_sf_getdents()
97 ctx->pos = dotdot_offset & 0x7fffffff; in xfs_dir2_sf_getdents()
98 if (!dir_emit(ctx, "..", 2, ino, DT_DIR)) in xfs_dir2_sf_getdents()
112 if (ctx->pos > off) { in xfs_dir2_sf_getdents()
119 ctx->pos = off & 0x7fffffff; in xfs_dir2_sf_getdents()
124 if (!dir_emit(ctx, (char *)sfep->name, sfep->namelen, ino, in xfs_dir2_sf_getdents()
130 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_sf_getdents()
141 struct dir_context *ctx) in xfs_dir2_block_getdents() argument
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()
206 ctx->pos = cook & 0x7fffffff; in xfs_dir2_block_getdents()
217 if (!dir_emit(ctx, (char *)dep->name, dep->namelen, in xfs_dir2_block_getdents()
227 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_block_getdents()
346 struct dir_context *ctx, in xfs_dir2_leaf_getdents() argument
367 if (ctx->pos >= XFS_DIR2_MAX_DATAPTR) in xfs_dir2_leaf_getdents()
374 curoff = xfs_dir2_dataptr_to_byte(ctx->pos); in xfs_dir2_leaf_getdents()
461 ctx->pos = xfs_dir2_byte_to_dataptr(curoff) & 0x7fffffff; in xfs_dir2_leaf_getdents()
468 if (!dir_emit(ctx, (char *)dep->name, dep->namelen, in xfs_dir2_leaf_getdents()
486 ctx->pos = XFS_DIR2_MAX_DATAPTR & 0x7fffffff; in xfs_dir2_leaf_getdents()
488 ctx->pos = xfs_dir2_byte_to_dataptr(curoff) & 0x7fffffff; in xfs_dir2_leaf_getdents()
506 struct dir_context *ctx, in xfs_readdir() argument
526 rval = xfs_dir2_sf_getdents(&args, ctx); in xfs_readdir()
530 rval = xfs_dir2_block_getdents(&args, ctx); in xfs_readdir()
532 rval = xfs_dir2_leaf_getdents(&args, ctx, bufsize); in xfs_readdir()