+ make-reiserfs-default-to-barrier=flush.patch added to -mm tree

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

 



The patch titled

     Make reiserfs default to barrier=flush

has been added to the -mm tree.  Its filename is

     make-reiserfs-default-to-barrier=flush.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

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

Change the default reiserfs mount option to barrier=flush

Signed-off-by: Chris Mason <mason@xxxxxxxx>
Cc: Jens Axboe <axboe@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---


diff -puN fs/reiserfs/super.c~make-reiserfs-default-to-barrier=flush fs/reiserfs/super.c
--- a/fs/reiserfs/super.c~make-reiserfs-default-to-barrier=flush
+++ a/fs/reiserfs/super.c
@@ -1755,9 +1755,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,
_

Patches currently in -mm which might be from mason@xxxxxxxx are

reiserfs-warn-about-the-useless-nolargeio-option.patch
make-reiserfs-default-to-barrier=flush.patch
make-ext3-mount-default-to-barrier=1.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux