ext2: Set the write time in ext2_sync_fs()
authorJan Blunck <jblunck@suse.de>
Wed, 14 Apr 2010 12:38:34 +0000 (14:38 +0200)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:38 +0000 (19:30 +0200)
This is probably a typo since the write time should actually be updated by
ext2_sync_fs() instead of the mount time.

Signed-off-by: Jan Blunck <jblunck@suse.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/super.c

index 8e8b675ac202e74ee1b276919124463587e11f6a..b2050032424fe3181c386e1db7c66ad1029a58ba 100644 (file)
@@ -1172,7 +1172,7 @@ static int ext2_sync_fs(struct super_block *sb, int wait)
                        cpu_to_le32(ext2_count_free_blocks(sb));
                es->s_free_inodes_count =
                        cpu_to_le32(ext2_count_free_inodes(sb));
-               es->s_mtime = cpu_to_le32(get_seconds());
+               es->s_wtime = cpu_to_le32(get_seconds());
                ext2_sync_super(sb, es);
        } else {
                ext2_commit_super(sb, es);