diff options
author | Jan Blunck <jblunck@suse.de> | 2010-04-14 08:38:34 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-21 13:30:38 -0400 |
commit | 269c8db30cf5b60f47a44bbceaac118b986895d8 (patch) | |
tree | aeae85a806e4acdc95aaab10fc1e1274ea9f102a /fs | |
parent | 2b8120efb2d41e2aefce3b06cf3fd085f71e9021 (diff) |
ext2: Set the write time in ext2_sync_fs()
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext2/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 8e8b675ac202..b2050032424f 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -1172,7 +1172,7 @@ static int ext2_sync_fs(struct super_block *sb, int wait) | |||
1172 | cpu_to_le32(ext2_count_free_blocks(sb)); | 1172 | cpu_to_le32(ext2_count_free_blocks(sb)); |
1173 | es->s_free_inodes_count = | 1173 | es->s_free_inodes_count = |
1174 | cpu_to_le32(ext2_count_free_inodes(sb)); | 1174 | cpu_to_le32(ext2_count_free_inodes(sb)); |
1175 | es->s_mtime = cpu_to_le32(get_seconds()); | 1175 | es->s_wtime = cpu_to_le32(get_seconds()); |
1176 | ext2_sync_super(sb, es); | 1176 | ext2_sync_super(sb, es); |
1177 | } else { | 1177 | } else { |
1178 | ext2_commit_super(sb, es); | 1178 | ext2_commit_super(sb, es); |