Home | History | Annotate | Download | only in e2fsck

Lines Matching defs:fs

7  * Parts of the code are based on fs/jfs/journal.c by Stephen C. Tweedie
61 retval= ext2fs_bmap(inode->i_ctx->fs, inode->i_ino,
71 int bufsize = sizeof(*bh) + kdev->k_ctx->fs->blocksize -
87 bh->b_io = kdev->k_ctx->fs->io;
101 io = kdev->k_ctx->fs->io;
190 ctx->fs->super->s_feature_incompat &= ~EXT3_FEATURE_INCOMPAT_RECOVER;
194 ctx->fs->super->s_state &= ~EXT2_VALID_FS;
195 ext2fs_mark_super_dirty(ctx->fs);
205 static int process_journal_block(ext2_filsys fs,
217 if (!blk || blk < fs->super->s_first_data_block ||
218 blk >= fs->super->s_blocks_count)
229 struct ext2_super_block *sb = ctx->fs->super;
264 journal->j_blocksize = ctx->fs->blocksize;
281 if ((retval = ext2fs_read_inode(ctx->fs,
310 retval = ext2fs_block_iterate2(ctx->fs, j_inode->i_ino,
313 if ((pb.last_block+1) * ctx->fs->blocksize <
319 retval = ext2fs_write_inode(ctx->fs, sb->s_journal_inum,
328 retval = ext2fs_inode_io_intern2(ctx->fs, sb->s_journal_inum,
337 ctx->journal_io = ctx->fs->io;
377 io_channel_set_blksize(ctx->journal_io, ctx->fs->blocksize);
380 if (ctx->fs->blocksize == 1024)
382 bh = getblk(dev_journal, start, ctx->fs->blocksize);
406 if (memcmp(jsuper.s_uuid, ctx->fs->super->s_journal_uuid,
448 struct ext2_super_block *sb = ctx->fs->super;
449 int recover = ctx->fs->super->s_feature_incompat &
451 int has_journal = ctx->fs->super->s_feature_compat &
464 ctx->fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
491 ctx->fs->blocksize-V1_SB_SIZE);
530 uuid_is_null(ctx->fs->super->s_journal_uuid))
612 memset (p, 0, ctx->fs->blocksize-sizeof(journal_header_t));
614 jsb->s_blocksize = htonl(ctx->fs->blocksize);
636 struct ext2_super_block *sb = ctx->fs->super;
637 int recover = ctx->fs->super->s_feature_incompat &
672 if (ctx->fs && ctx->fs->io != ctx->journal_io)
692 struct ext2_super_block *sb = ctx->fs->super;
694 int recover = ctx->fs->super->s_feature_incompat &
764 ctx->fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
765 ext2fs_mark_super_dirty(ctx->fs);
782 ext2fs_mark_super_dirty(ctx->fs);
787 ext2fs_mark_super_dirty(ctx->fs);
809 ctx->fs->super->s_state |= EXT2_ERROR_FS;
810 ext2fs_mark_super_dirty(ctx->fs);
860 io_manager io_ptr = ctx->fs->io->manager;
861 int blocksize = ctx->fs->blocksize;
873 if (ctx->fs->flags & EXT2_FLAG_DIRTY)
874 ext2fs_flush(ctx->fs); /* Force out any modifications */
882 if (ctx->fs->super->s_kbytes_written &&
883 ctx->fs->io->manager->get_stats)
884 ctx->fs->io->manager->get_stats(ctx->fs->io, &stats);
887 ext2fs_free(ctx->fs);
890 &ctx->fs);
897 ctx->fs->priv_data = ctx;
898 ctx->fs->now = ctx->now;
899 ctx->fs->flags |= EXT2_FLAG_MASTER_SB_ONLY;
900 ctx->fs->super->s_kbytes_written += kbytes_written;
907 * the EXT2_ERROR_FS flag in the fs superblock if needed.
922 struct ext2_super_block *sb = ctx->fs->super;
925 ext2_filsys fs = ctx->fs;
945 if (ext2fs_read_inode(fs, sb->s_journal_inum, &inode) != 0)
959 ext2fs_mark_super_dirty(fs);
960 fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
989 retval = ext2fs_lookup(fs, EXT2_ROOT_INO, *cpp,
998 retval = ext2fs_read_bitmaps(fs);
1011 if ((retval = ext2fs_unlink(fs, EXT2_ROOT_INO, *cpp, ino, 0)) != 0)
1013 if ((retval = ext2fs_write_inode(fs, EXT2_JOURNAL_INO, &inode)) != 0)
1016 ext2fs_mark_super_dirty(fs);
1017 fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
1020 if ((retval = ext2fs_write_inode(fs, ino, &inode)) != 0)
1023 group = ext2fs_group_of_ino(fs, ino);
1024 ext2fs_unmark_inode_bitmap(fs->inode_map, ino);
1025 ext2fs_mark_ib_dirty(fs);
1026 fs->group_desc[group].bg_free_inodes_count++;
1027 ext2fs_group_desc_csum_set(fs, group);
1028 fs->super->s_free_inodes_count++;
1034 fs->super->s_state &= ~EXT2_VALID_FS;
1035 ext2fs_mark_super_dirty(fs);
1045 struct ext2_super_block *sb = ctx->fs->super;
1067 ext2fs_mark_super_dirty(ctx->fs);