From: Chris Mason <mason@suse.com>
To: linux-fsdevel@vger.kernel.org
Cc: akpm@osdl.org, reiserfs-dev@namesys.com
Subject: [PATCH 1/2] Make reiserfs default to barrier=flush
Date: Fri, 4 Aug 2006 09:53:35 -0400 [thread overview]
Message-ID: <20060804135335.GA1134@watt.suse.com> (raw)
In-Reply-To: <20060804135140.GA942@watt.suse.com>
From: Chris Mason <mason@suse.com>
Subject: Make reiserfs default to barrier=flush
Change the default reiserfs mount option to barrier=flush
Signed-off-by: Chris Mason <mason@suse.com>
--- 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,
next prev parent reply other threads:[~2006-08-04 13:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-04 13:51 [PATCH 0/2] enable write barriers by default Chris Mason
2006-08-04 13:53 ` Chris Mason [this message]
2006-08-04 13:55 ` [PATCH 2/2] make ext3 mount default to barrier=1 Chris Mason
2006-08-05 3:39 ` [PATCH 0/2] enable write barriers by default Hans Reiser
2006-08-05 12:45 ` Chris Mason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060804135335.GA1134@watt.suse.com \
--to=mason@suse.com \
--cc=akpm@osdl.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=reiserfs-dev@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).