ext3: make ext3 mount default to barrier=1
PATCH 1/1 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 <[email protected]>
Signed-off-by Christoph Hellwig <[email protected]>
Acked-by Eric Sandeen <[email protected]>
Acked-by Jan Kara <[email protected]>
Acked-by Jeff Mahoney <[email protected]>
Acked-by Ted Ts'o <[email protected]>
fs/ext3/super.c +2 -0
@@ -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,