diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-07-16 16:46:50 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 20:47:54 -0400 |
commit | 00eacd66cd8ab5fff9df49aa3f261ad43d495434 (patch) | |
tree | e561daf501504513463e32d6b32fe5f200f6cc22 | |
parent | b85fd6bdc99da917f5ae0f90f0c2d86ef9a766aa (diff) |
ext3: make ext3 mount default to barrier=1
This patch turns on barriers by default for ext3. mount -o barrier=0
will turn them off. Based on a patch from Chris Mason in the SuSE tree.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Jan Kara <jack@suse.cz>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Acked-by: Ted Ts'o <tytso@mit.edu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/ext3/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index aad153ef6b78..b57ea2f91269 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -1718,6 +1718,8 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent) | |||
1718 | sbi->s_resuid = le16_to_cpu(es->s_def_resuid); | 1718 | sbi->s_resuid = le16_to_cpu(es->s_def_resuid); |
1719 | sbi->s_resgid = le16_to_cpu(es->s_def_resgid); | 1719 | sbi->s_resgid = le16_to_cpu(es->s_def_resgid); |
1720 | 1720 | ||
1721 | /* enable barriers by default */ | ||
1722 | set_opt(sbi->s_mount_opt, BARRIER); | ||
1721 | set_opt(sbi->s_mount_opt, RESERVATION); | 1723 | set_opt(sbi->s_mount_opt, RESERVATION); |
1722 | 1724 | ||
1723 | if (!parse_options ((char *) data, sb, &journal_inum, &journal_devnum, | 1725 | if (!parse_options ((char *) data, sb, &journal_inum, &journal_devnum, |