Lines Matching refs:fs
22 ext2_filsys fs;
23 int (*func)(ext2_filsys fs,
67 limit = ctx->fs->blocksize >> 2;
71 ret = (*ctx->func)(ctx->fs, &blk64,
81 if (*ind_block >= ext2fs_blocks_count(ctx->fs->super) ||
82 *ind_block < ctx->fs->super->s_first_data_block) {
87 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *ind_block,
99 flags = (*ctx->func)(ctx->fs, &blk64, ctx->bcount,
115 flags = (*ctx->func)(ctx->fs, &blk64, ctx->bcount,
130 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *ind_block,
139 ret |= (*ctx->func)(ctx->fs, &blk64,
156 limit = ctx->fs->blocksize >> 2;
160 ret = (*ctx->func)(ctx->fs, &blk64,
170 if (*dind_block >= ext2fs_blocks_count(ctx->fs->super) ||
171 *dind_block < ctx->fs->super->s_first_data_block) {
176 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *dind_block,
216 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *dind_block,
225 ret |= (*ctx->func)(ctx->fs, &blk64,
242 limit = ctx->fs->blocksize >> 2;
246 ret = (*ctx->func)(ctx->fs, &blk64,
256 if (*tind_block >= ext2fs_blocks_count(ctx->fs->super) ||
257 *tind_block < ctx->fs->super->s_first_data_block) {
262 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *tind_block,
302 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *tind_block,
311 ret |= (*ctx->func)(ctx->fs, &blk64,
320 errcode_t ext2fs_block_iterate3(ext2_filsys fs,
324 int (*func)(ext2_filsys fs,
340 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
342 ctx.errcode = ext2fs_read_inode(fs, ino, &inode);
355 limit = fs->blocksize >> 2;
357 ctx.fs = fs;
365 retval = ext2fs_get_array(3, fs->blocksize, &ctx.ind_buf);
369 ctx.dind_buf = ctx.ind_buf + fs->blocksize;
370 ctx.tind_buf = ctx.dind_buf + fs->blocksize;
375 if ((fs->super->s_creator_os == EXT2_OS_HURD) &&
379 ret |= (*ctx.func)(fs, &blk64,
398 ctx.errcode = ext2fs_extent_open2(fs, ino, &inode, &handle);
416 r = (*ctx.func)(fs, &blk, blockcnt,
445 ret |= (*ctx.func)(fs, &blk,
484 r = (*ctx.func)(fs, &new_blk, blockcnt,
518 ret |= (*ctx.func)(fs, &blk64, ctx.bcount, 0, i,
549 retval = ext2fs_write_inode(fs, ino, &inode);
567 int (*func)(ext2_filsys fs,
576 static int xlate64_func(ext2_filsys fs, blk64_t *blocknr,
584 ret = (*xl->func)(fs, &block32, blockcnt, (blk_t) ref_blk, ref_offset,
590 errcode_t ext2fs_block_iterate2(ext2_filsys fs,
594 int (*func)(ext2_filsys fs,
607 return ext2fs_block_iterate3(fs, ino, flags, block_buf,
613 int (*func)(ext2_filsys fs,
623 static int xlate_func(ext2_filsys fs, blk_t *blocknr, e2_blkcnt_t blockcnt,
630 return (*xl->func)(fs, blocknr, (int) blockcnt, xl->real_private);
633 errcode_t ext2fs_block_iterate(ext2_filsys fs,
637 int (*func)(ext2_filsys fs,
648 return ext2fs_block_iterate2(fs, ino, BLOCK_FLAG_NO_LARGE | flags,