Lines Matching refs:fs

22 	ext2_filsys	fs;
23 int (*func)(ext2_filsys fs,
66 limit = ctx->fs->blocksize >> 2;
69 ret = (*ctx->func)(ctx->fs, ind_block,
77 if (*ind_block >= ctx->fs->super->s_blocks_count ||
78 *ind_block < ctx->fs->super->s_first_data_block) {
83 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *ind_block,
94 flags = (*ctx->func)(ctx->fs, block_nr, ctx->bcount,
108 flags = (*ctx->func)(ctx->fs, block_nr, ctx->bcount,
122 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *ind_block,
130 ret |= (*ctx->func)(ctx->fs, ind_block,
144 limit = ctx->fs->blocksize >> 2;
147 ret = (*ctx->func)(ctx->fs, dind_block,
155 if (*dind_block >= ctx->fs->super->s_blocks_count ||
156 *dind_block < ctx->fs->super->s_first_data_block) {
161 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *dind_block,
201 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *dind_block,
209 ret |= (*ctx->func)(ctx->fs, dind_block,
223 limit = ctx->fs->blocksize >> 2;
226 ret = (*ctx->func)(ctx->fs, tind_block,
234 if (*tind_block >= ctx->fs->super->s_blocks_count ||
235 *tind_block < ctx->fs->super->s_first_data_block) {
240 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *tind_block,
280 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *tind_block,
288 ret |= (*ctx->func)(ctx->fs, tind_block,
295 errcode_t ext2fs_block_iterate2(ext2_filsys fs,
299 int (*func)(ext2_filsys fs,
314 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
316 ctx.errcode = ext2fs_read_inode(fs, ino, &inode);
329 limit = fs->blocksize >> 2;
331 ctx.fs = fs;
339 retval = ext2fs_get_array(3, fs->blocksize, &ctx.ind_buf);
343 ctx.dind_buf = ctx.ind_buf + fs->blocksize;
344 ctx.tind_buf = ctx.dind_buf + fs->blocksize;
349 if ((fs->super->s_creator_os == EXT2_OS_HURD) &&
352 ret |= (*ctx.func)(fs,
371 ctx.errcode = ext2fs_extent_open2(fs, ino, &inode, &handle);
385 r = (*ctx.func)(fs, &blk, blockcnt,
414 ret |= (*ctx.func)(fs, &blk,
433 r = (*ctx.func)(fs, &new_blk, blockcnt,
463 ret |= (*ctx.func)(fs, &inode.i_block[i],
493 retval = ext2fs_write_inode(fs, ino, &inode);
511 int (*func)(ext2_filsys fs,
521 static int xlate_func(ext2_filsys fs, blk_t *blocknr, e2_blkcnt_t blockcnt,
528 return (*xl->func)(fs, blocknr, (int) blockcnt, xl->real_private);
531 errcode_t ext2fs_block_iterate(ext2_filsys fs,
535 int (*func)(ext2_filsys fs,
546 return ext2fs_block_iterate2(fs, ino, BLOCK_FLAG_NO_LARGE | flags,