[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110716204650.GA16882@infradead.org>
Date: Sat, 16 Jul 2011 16:46:50 -0400
From: Christoph Hellwig <hch@...radead.org>
To: viro@...iv.linux.org.uk
Cc: jeffm@...e.com, chris.mason@...cle.com, jack@...e.cz,
reiserfs-devel@...r.kernel.org, linux-ext4@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: [PATCH] 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@...cle.com>
Signed-off-by: Christoph Hellwig <hch@....de>
Acked-by: Eric Sandeen <sandeen@...hat.com>
Acked-by: Jan Kara <jack@...e.cz>
Acked-by: Jeff Mahoney <jeffm@...e.com>
Acked-by: Ted Ts'o <tytso@....edu>
Index: linux-2.6/fs/ext3/super.c
===================================================================
--- linux-2.6.orig/fs/ext3/super.c 2011-06-30 21:19:37.389544975 +0200
+++ linux-2.6/fs/ext3/super.c 2011-07-02 13:56:51.877784292 +0200
@@ -1718,6 +1718,8 @@ static int ext3_fill_super (struct super
sbi->s_resuid = le16_to_cpu(es->s_def_resuid);
sbi->s_resgid = le16_to_cpu(es->s_def_resgid);
+ /* enable barriers by default */
+ set_opt(sbi->s_mount_opt, BARRIER);
set_opt(sbi->s_mount_opt, RESERVATION);
if (!parse_options ((char *) data, sb, &journal_inum, &journal_devnum,
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists