summaryrefslogtreecommitdiffstats
path: root/fs/ext2
diff options
context:
space:
mode:
authorJan Blunck <jblunck@suse.de>2010-04-14 14:38:34 +0200
committerJan Kara <jack@suse.cz>2010-05-21 19:30:38 +0200
commit269c8db30cf5b60f47a44bbceaac118b986895d8 (patch)
treeaeae85a806e4acdc95aaab10fc1e1274ea9f102a /fs/ext2
parent2b8120efb2d41e2aefce3b06cf3fd085f71e9021 (diff)
downloadlinux-269c8db30cf5b60f47a44bbceaac118b986895d8.tar.gz
linux-269c8db30cf5b60f47a44bbceaac118b986895d8.tar.bz2
linux-269c8db30cf5b60f47a44bbceaac118b986895d8.zip
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/ext2')
-rw-r--r--fs/ext2/super.c2
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)
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);