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,
121 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *ind_block,
129 ret |= (*ctx->func)(ctx->fs, ind_block,
143 limit = ctx->fs->blocksize >> 2;
146 ret = (*ctx->func)(ctx->fs, dind_block,
154 if (*dind_block >= ctx->fs->super->s_blocks_count ||
155 *dind_block < ctx->fs->super->s_first_data_block) {
160 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *dind_block,
200 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *dind_block,
208 ret |= (*ctx->func)(ctx->fs, dind_block,
222 limit = ctx->fs->blocksize >> 2;
225 ret = (*ctx->func)(ctx->fs, tind_block,
233 if (*tind_block >= ctx->fs->super->s_blocks_count ||
234 *tind_block < ctx->fs->super->s_first_data_block) {
239 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *tind_block,
279 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *tind_block,
287 ret |= (*ctx->func)(ctx->fs, tind_block,
294 errcode_t ext2fs_block_iterate2(ext2_filsys fs,
298 int (*func)(ext2_filsys fs,
313 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
315 ctx.errcode = ext2fs_read_inode(fs, ino, &inode);
328 limit = fs->blocksize >> 2;
330 ctx.fs = fs;
338 retval = ext2fs_get_array(3, fs->blocksize, &ctx.ind_buf);
342 ctx.dind_buf = ctx.ind_buf + fs->blocksize;
343 ctx.tind_buf = ctx.dind_buf + fs->blocksize;
348 if ((fs->super->s_creator_os == EXT2_OS_HURD) &&
351 ret |= (*ctx.func)(fs,
370 ctx.errcode = ext2fs_extent_open2(fs, ino, &inode, &handle);
384 r = (*ctx.func)(fs, &blk, blockcnt,
413 ret |= (*ctx.func)(fs, &blk,
432 r = (*ctx.func)(fs, &new_blk, blockcnt,
462 ret |= (*ctx.func)(fs, &inode.i_block[i],
492 retval = ext2fs_write_inode(fs, ino, &inode);
510 int (*func)(ext2_filsys fs,
520 static int xlate_func(ext2_filsys fs, blk_t *blocknr, e2_blkcnt_t blockcnt,
527 return (*xl->func)(fs, blocknr, (int) blockcnt, xl->real_private);
530 errcode_t ext2fs_block_iterate(ext2_filsys fs,
534 int (*func)(ext2_filsys fs,
545 return ext2fs_block_iterate2(fs, ino, BLOCK_FLAG_NO_LARGE | flags,