Commit 7018133c authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[PATCH] Implement a/c/time speedup in ext2 & ext3

Turn on MS_ONE_SECOND in ext2 and ext3.
parent fd2134bb
......@@ -598,6 +598,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
es = (struct ext2_super_block *) (((char *)bh->b_data) + offset);
sbi->s_es = es;
sb->s_magic = le16_to_cpu(es->s_magic);
sb->s_flags |= MS_ONE_SECOND;
if (sb->s_magic != EXT2_SUPER_MAGIC) {
if (!silent)
printk ("VFS: Can't find ext2 filesystem on dev %s.\n",
......
......@@ -1097,6 +1097,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
if (!parse_options ((char *) data, sbi, &journal_inum, 0))
goto failed_mount;
sb->s_flags |= MS_ONE_SECOND;
sb->s_flags = (sb->s_flags & ~MS_POSIXACL) |
((sbi->s_mount_opt & EXT3_MOUNT_POSIX_ACL) ? MS_POSIXACL : 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment