[PATCH 1/2] Make reiserfs default to barrier=flush

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Chris Mason <mason@xxxxxxxx>
Subject: Make reiserfs default to barrier=flush

Change the default reiserfs mount option to barrier=flush

Signed-off-by: Chris Mason <mason@xxxxxxxx>

--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -1785,9 +1785,12 @@ static int reiserfs_fill_super(struct su
 	} else {
 		reiserfs_info(s, "using writeback data mode\n");
 	}
-	if (reiserfs_barrier_flush(s)) {
+	/* make barrer=flush the default */
+
+	if (!reiserfs_barrier_none(s))
+		REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_BARRIER_FLUSH);
+	if (reiserfs_barrier_flush(s))
 		printk("reiserfs: using flush barriers\n");
-	}
 	// set_device_ro(s->s_dev, 1) ;
 	if (journal_init(s, jdev_name, old_format, commit_max_age)) {
 		SWARN(silent, s,
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux