aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-01-18 10:54:22 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:59 -0400
commite18e4809b10e6c9efb5fe10c1ddcb4ebb690d517 (patch)
treec8419f7fde6690cd352252af89295511650e3707 /fs/btrfs/super.c
parent04005cc7a1feef94237204566ccac38571af7991 (diff)
Btrfs: Add mount -o ssd, which includes optimizations for seek free storage
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 e506de3168b..b6982f0133c 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -64,7 +64,7 @@ static void btrfs_put_super (struct super_block * sb)
enum {
Opt_subvol, Opt_nodatasum, Opt_nodatacow, Opt_max_extent,
- Opt_alloc_start, Opt_nobarrier, Opt_err,
+ Opt_alloc_start, Opt_nobarrier, Opt_ssd, Opt_err,
};
static match_table_t tokens = {
@@ -74,6 +74,7 @@ static match_table_t tokens = {
{Opt_nobarrier, "nobarrier"},
{Opt_max_extent, "max_extent=%s"},
{Opt_alloc_start, "alloc_start=%s"},
+ {Opt_ssd, "ssd"},
{Opt_err, NULL}
};
@@ -149,6 +150,12 @@ static int parse_options (char * options,
btrfs_set_opt(info->mount_opt, NODATASUM);
}
break;
+ case Opt_ssd:
+ if (info) {
+ printk("btrfs: use ssd allocation scheme\n");
+ btrfs_set_opt(info->mount_opt, SSD);
+ }
+ break;
case Opt_nobarrier:
if (info) {
printk("btrfs: turning off barriers\n");