summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-01-09 09:23:21 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:59 -0400
commit21ad10cf3e9c1ef42e725e5c3a593c49f779a16b (patch)
tree94eaa869bd3af0329ce3d5ed74d63f041c39dc5c /fs/btrfs/super.c
parentbcd987feefe8da66bc59b4e6bd51761a9820588c (diff)
downloadlinux-21ad10cf3e9c1ef42e725e5c3a593c49f779a16b.tar.bz2
Btrfs: Add flush barriers on commit
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index f1b56eb77b1d..9ab4086d463c 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -64,13 +64,14 @@ static void btrfs_put_super (struct super_block * sb)
enum {
Opt_subvol, Opt_nodatasum, Opt_nodatacow, Opt_max_extent,
- Opt_alloc_start, Opt_err,
+ Opt_alloc_start, Opt_nobarrier, Opt_err,
};
static match_table_t tokens = {
{Opt_subvol, "subvol=%s"},
{Opt_nodatasum, "nodatasum"},
{Opt_nodatacow, "nodatacow"},
+ {Opt_nobarrier, "nobarrier"},
{Opt_max_extent, "max_extent=%s"},
{Opt_alloc_start, "alloc_start=%s"},
{Opt_err, NULL}
@@ -148,6 +149,12 @@ static int parse_options (char * options,
btrfs_set_opt(info->mount_opt, NODATASUM);
}
break;
+ case Opt_nobarrier:
+ if (info) {
+ printk("btrfs: turning off barriers\n");
+ btrfs_set_opt(info->mount_opt, NOBARRIER);
+ }
+ break;
case Opt_max_extent:
if (info) {
char *num = match_strdup(&args[0]);