diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-07-16 16:47:00 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 20:47:55 -0400 |
commit | b4d5b10fb2e3a4327838c07d8ebd9e350fcc133d (patch) | |
tree | e267e9e3fe8d56718ff43ef1fb50b24d8fea9f21 /fs | |
parent | 00eacd66cd8ab5fff9df49aa3f261ad43d495434 (diff) |
reiserfs: make reiserfs default to barrier=flush
Change the default reiserfs mount option to barrier=flush. Based on a patch
from Jeff Mahoney in the SuSE tree.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/reiserfs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index aa91089162cb..14363b96b6af 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c | |||
@@ -1643,6 +1643,7 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent) | |||
1643 | /* Set default values for options: non-aggressive tails, RO on errors */ | 1643 | /* Set default values for options: non-aggressive tails, RO on errors */ |
1644 | REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_SMALLTAIL); | 1644 | REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_SMALLTAIL); |
1645 | REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_ERROR_RO); | 1645 | REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_ERROR_RO); |
1646 | REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_BARRIER_FLUSH); | ||
1646 | /* no preallocation minimum, be smart in | 1647 | /* no preallocation minimum, be smart in |
1647 | reiserfs_file_write instead */ | 1648 | reiserfs_file_write instead */ |
1648 | REISERFS_SB(s)->s_alloc_options.preallocmin = 0; | 1649 | REISERFS_SB(s)->s_alloc_options.preallocmin = 0; |