reiserfs: make reiserfs default to barrier=flush
authorChristoph Hellwig <hch@infradead.org>
Sat, 16 Jul 2011 20:47:00 +0000 (16:47 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:55 +0000 (20:47 -0400)
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>
fs/reiserfs/super.c

index aa91089162cb568ce4e5426c4b9db2e942240ce7..14363b96b6afafa74a80c2c66553c8d914064268 100644 (file)
@@ -1643,6 +1643,7 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
        /* Set default values for options: non-aggressive tails, RO on errors */
        REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_SMALLTAIL);
        REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_ERROR_RO);
+       REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_BARRIER_FLUSH);
        /* no preallocation minimum, be smart in
           reiserfs_file_write instead */
        REISERFS_SB(s)->s_alloc_options.preallocmin = 0;