Skip to content

Commit 00eacd6

Browse files
Christoph HellwigAl Viro
authored andcommitted
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>
1 parent b85fd6b commit 00eacd6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/ext3/super.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,8 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
17181718
sbi->s_resuid = le16_to_cpu(es->s_def_resuid);
17191719
sbi->s_resgid = le16_to_cpu(es->s_def_resgid);
17201720

1721+
/* enable barriers by default */
1722+
set_opt(sbi->s_mount_opt, BARRIER);
17211723
set_opt(sbi->s_mount_opt, RESERVATION);
17221724

17231725
if (!parse_options ((char *) data, sb, &journal_inum, &journal_devnum,

0 commit comments

Comments
 (0)