From: Chris Mason Change the default reiserfs mount option to barrier=flush Signed-off-by: Chris Mason Cc: Jens Axboe Signed-off-by: Andrew Morton --- 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, _