Home | History | Annotate | Download | only in e2fsck

Lines Matching refs: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 < 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;
376 io_channel_set_blksize(ctx->journal_io, ctx->fs->blocksize);
379 if (ctx->fs->blocksize == 1024)
381 bh = getblk(dev_journal, start, ctx->fs->blocksize);
405 if (memcmp(jsuper.s_uuid, ctx->fs->super->s_journal_uuid,
447 struct ext2_super_block *sb = ctx->fs->super;
448 int recover = ctx->fs->super->s_feature_incompat &
450 int has_journal = ctx->fs->super->s_feature_compat &
463 ctx->fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
490 ctx->fs->blocksize-V1_SB_SIZE);
529 uuid_is_null(ctx->fs->super->s_journal_uuid))
611 memset (p, 0, ctx->fs->blocksize-sizeof(journal_header_t));
613 jsb->s_blocksize = htonl(ctx->fs->blocksize);
635 struct ext2_super_block *sb = ctx->fs->super;
636 int recover = ctx->fs->super->s_feature_incompat &
671 if (ctx->fs && ctx->fs->io != ctx->journal_io)
691 struct ext2_super_block *sb = ctx->fs->super;
693 int recover = ctx->fs->super->s_feature_incompat &
763 ctx->fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
764 ext2fs_mark_super_dirty(ctx->fs);
781 ext2fs_mark_super_dirty(ctx->fs);
786 ext2fs_mark_super_dirty(ctx->fs);
833 ctx->fs->super->s_state |= EXT2_ERROR_FS;
834 ext2fs_mark_super_dirty(ctx->fs);
839 ctx->fs->super->s_state |= EXT2_ERROR_FS;
840 ext2fs_mark_super_dirty(ctx->fs);
854 io_manager io_ptr = ctx->fs->io->manager;
855 int blocksize = ctx->fs->blocksize;
867 if (ctx->fs->flags & EXT2_FLAG_DIRTY)
868 ext2fs_flush(ctx->fs); /* Force out any modifications */
876 if (ctx->fs->super->s_kbytes_written &&
877 ctx->fs->io->manager->get_stats)
878 ctx->fs->io->manager->get_stats(ctx->fs->io, &stats);
881 ext2fs_free(ctx->fs);
884 &ctx->fs);
891 ctx->fs->priv_data = ctx;
892 ctx->fs->now = ctx->now;
893 ctx->fs->flags |= EXT2_FLAG_MASTER_SB_ONLY;
894 ctx->fs->super->s_kbytes_written += kbytes_written;
910 struct ext2_super_block *sb = ctx->fs->super;
913 ext2_filsys fs = ctx->fs;
933 if (ext2fs_read_inode(fs, sb->s_journal_inum, &inode) != 0)
947 ext2fs_mark_super_dirty(fs);
948 fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
977 retval = ext2fs_lookup(fs, EXT2_ROOT_INO, *cpp,
986 retval = ext2fs_read_bitmaps(fs);
999 if ((retval = ext2fs_unlink(fs, EXT2_ROOT_INO, *cpp, ino, 0)) != 0)
1001 if ((retval = ext2fs_write_inode(fs, EXT2_JOURNAL_INO, &inode)) != 0)
1004 ext2fs_mark_super_dirty(fs);
1005 fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
1008 if ((retval = ext2fs_write_inode(fs, ino, &inode)) != 0)
1011 group = ext2fs_group_of_ino(fs, ino);
1012 ext2fs_unmark_inode_bitmap(fs->inode_map, ino);
1013 ext2fs_mark_ib_dirty(fs);
1014 fs->group_desc[group].bg_free_inodes_count++;
1015 ext2fs_group_desc_csum_set(fs, group);
1016 fs->super->s_free_inodes_count++;
1022 fs->super->s_state &= ~EXT2_VALID_FS;
1023 ext2fs_mark_super_dirty(fs);
1033 struct ext2_super_block *sb = ctx->fs->super;
1055 ext2fs_mark_super_dirty(ctx->fs);