#ifdef CONFIG_EXT3_CHECK if (test_opt (sb, CHECK)) { ext3_check_blocks_bitmap (sb); ext3_check_inodes_bitmap (sb); } #endif 
static int ext3_setup_super(struct super_block *sb, struct ext3_super_block *es,			    int read_only){	struct ext3_sb_info *sbi = EXT3_SB(sb);	int res = 0;	if (le32_to_cpu(es->s_rev_level) > EXT3_MAX_SUPP_REV) {		printk (KERN_ERR "EXT3-fs warning: revision level too high, "			"forcing read-only mode\n");		res = MS_RDONLY;	}	if (read_only)		return res;	if (!(sbi->s_mount_state & EXT3_VALID_FS))		printk (KERN_WARNING "EXT3-fs warning: mounting unchecked fs, "			"running e2fsck is recommended\n");	else if ((sbi->s_mount_state & EXT3_ERROR_FS))		printk (KERN_WARNING			"EXT3-fs warning: mounting fs with errors, "			"running e2fsck is recommended\n");	else if ((__s16) le16_to_cpu(es->s_max_mnt_count) >= 0 &&		 le16_to_cpu(es->s_mnt_count) >=		 (unsigned short) (__s16) le16_to_cpu(es->s_max_mnt_count))		printk (KERN_WARNING			"EXT3-fs warning: maximal mount count reached, "			"running e2fsck is recommended\n");	else if (le32_to_cpu(es->s_checkinterval) &&		(le32_to_cpu(es->s_lastcheck) +			le32_to_cpu(es->s_checkinterval) <= get_seconds()))		printk (KERN_WARNING			"EXT3-fs warning: checktime reached, "			"running e2fsck is recommended\n");#if 0		/* @@@ We _will_ want to clear the valid bit if we find                   inconsistencies, to force a fsck at reboot.  But for                   a plain journaled filesystem we can keep it set as                   valid forever! :) */	es->s_state = cpu_to_le16(le16_to_cpu(es->s_state) & ~EXT3_VALID_FS);#endif	if (!(__s16) le16_to_cpu(es->s_max_mnt_count))		es->s_max_mnt_count = cpu_to_le16(EXT3_DFL_MAX_MNT_COUNT);	es->s_mnt_count=cpu_to_le16(le16_to_cpu(es->s_mnt_count) + 1);	es->s_mtime = cpu_to_le32(get_seconds());	ext3_update_dynamic_rev(sb);	EXT3_SET_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_RECOVER);	ext3_commit_super(sb, es, 1);	if (test_opt(sb, DEBUG))		printk(KERN_INFO "[EXT3 FS bs=%lu, gc=%lu, "				"bpg=%lu, ipg=%lu, mo=%04lx]\n",			sb->s_blocksize,			sbi->s_groups_count,			EXT3_BLOCKS_PER_GROUP(sb),			EXT3_INODES_PER_GROUP(sb),			sbi->s_mount_opt);	printk(KERN_INFO "EXT3 FS on %s, ", sb->s_id);	if (EXT3_SB(sb)->s_journal->j_inode == NULL) {		char b[BDEVNAME_SIZE];		printk("external journal on %s\n",			bdevname(EXT3_SB(sb)->s_journal->j_dev, b));	} else {		printk("internal journal\n");	}#ifdef CONFIG_EXT3_CHECK	if (test_opt (sb, CHECK)) {		ext3_check_blocks_bitmap (sb);		ext3_check_inodes_bitmap (sb);	}#endif	return res;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/2860b733f114e088b56c20da6145902c16b79a44/super.c/clean/fs/ext3/super.c