@@ -67,7 +67,6 @@ static const char *ext3_decode_error(struct super_block * sb, int errno,
6767static int ext3_remount (struct super_block * sb , int * flags , char * data );
6868static int ext3_statfs (struct dentry * dentry , struct kstatfs * buf );
6969static int ext3_unfreeze (struct super_block * sb );
70- static void ext3_write_super (struct super_block * sb );
7170static int ext3_freeze (struct super_block * sb );
7271
7372/*
@@ -761,7 +760,6 @@ static const struct super_operations ext3_sops = {
761760 .dirty_inode = ext3_dirty_inode ,
762761 .delete_inode = ext3_delete_inode ,
763762 .put_super = ext3_put_super ,
764- .write_super = ext3_write_super ,
765763 .sync_fs = ext3_sync_fs ,
766764 .freeze_fs = ext3_freeze ,
767765 .unfreeze_fs = ext3_unfreeze ,
@@ -1785,7 +1783,6 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
17851783#else
17861784 es -> s_flags |= cpu_to_le32 (EXT2_FLAGS_SIGNED_HASH );
17871785#endif
1788- sb -> s_dirt = 1 ;
17891786 }
17901787
17911788 if (sbi -> s_blocks_per_group > blocksize * 8 ) {
@@ -2265,7 +2262,6 @@ static int ext3_load_journal(struct super_block *sb,
22652262 if (journal_devnum &&
22662263 journal_devnum != le32_to_cpu (es -> s_journal_dev )) {
22672264 es -> s_journal_dev = cpu_to_le32 (journal_devnum );
2268- sb -> s_dirt = 1 ;
22692265
22702266 /* Make sure we flush the recovery flag to disk. */
22712267 ext3_commit_super (sb , es , 1 );
@@ -2308,7 +2304,6 @@ static int ext3_create_journal(struct super_block * sb,
23082304 EXT3_SET_COMPAT_FEATURE (sb , EXT3_FEATURE_COMPAT_HAS_JOURNAL );
23092305
23102306 es -> s_journal_inum = cpu_to_le32 (journal_inum );
2311- sb -> s_dirt = 1 ;
23122307
23132308 /* Make sure we flush the recovery flag to disk. */
23142309 ext3_commit_super (sb , es , 1 );
@@ -2354,7 +2349,6 @@ static void ext3_mark_recovery_complete(struct super_block * sb,
23542349 if (EXT3_HAS_INCOMPAT_FEATURE (sb , EXT3_FEATURE_INCOMPAT_RECOVER ) &&
23552350 sb -> s_flags & MS_RDONLY ) {
23562351 EXT3_CLEAR_INCOMPAT_FEATURE (sb , EXT3_FEATURE_INCOMPAT_RECOVER );
2357- sb -> s_dirt = 0 ;
23582352 ext3_commit_super (sb , es , 1 );
23592353 }
23602354 unlock_super (sb );
@@ -2413,29 +2407,14 @@ int ext3_force_commit(struct super_block *sb)
24132407 return 0 ;
24142408
24152409 journal = EXT3_SB (sb )-> s_journal ;
2416- sb -> s_dirt = 0 ;
24172410 ret = ext3_journal_force_commit (journal );
24182411 return ret ;
24192412}
24202413
2421- /*
2422- * Ext3 always journals updates to the superblock itself, so we don't
2423- * have to propagate any other updates to the superblock on disk at this
2424- * point. (We can probably nuke this function altogether, and remove
2425- * any mention to sb->s_dirt in all of fs/ext3; eventual cleanup...)
2426- */
2427- static void ext3_write_super (struct super_block * sb )
2428- {
2429- if (mutex_trylock (& sb -> s_lock ) != 0 )
2430- BUG ();
2431- sb -> s_dirt = 0 ;
2432- }
2433-
24342414static int ext3_sync_fs (struct super_block * sb , int wait )
24352415{
24362416 tid_t target ;
24372417
2438- sb -> s_dirt = 0 ;
24392418 if (journal_start_commit (EXT3_SB (sb )-> s_journal , & target )) {
24402419 if (wait )
24412420 log_wait_commit (EXT3_SB (sb )-> s_journal , target );
@@ -2451,7 +2430,6 @@ static int ext3_freeze(struct super_block *sb)
24512430{
24522431 int error = 0 ;
24532432 journal_t * journal ;
2454- sb -> s_dirt = 0 ;
24552433
24562434 if (!(sb -> s_flags & MS_RDONLY )) {
24572435 journal = EXT3_SB (sb )-> s_journal ;
0 commit comments