diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-01-18 10:54:22 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:59 -0400 |
commit | e18e4809b10e6c9efb5fe10c1ddcb4ebb690d517 (patch) | |
tree | c8419f7fde6690cd352252af89295511650e3707 /fs/btrfs/super.c | |
parent | 04005cc7a1feef94237204566ccac38571af7991 (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.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index e506de3168bc..b6982f0133cf 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -64,7 +64,7 @@ static void btrfs_put_super (struct super_block * sb) | |||
64 | 64 | ||
65 | enum { | 65 | enum { |
66 | Opt_subvol, Opt_nodatasum, Opt_nodatacow, Opt_max_extent, | 66 | Opt_subvol, Opt_nodatasum, Opt_nodatacow, Opt_max_extent, |
67 | Opt_alloc_start, Opt_nobarrier, Opt_err, | 67 | Opt_alloc_start, Opt_nobarrier, Opt_ssd, Opt_err, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | static match_table_t tokens = { | 70 | static match_table_t tokens = { |
@@ -74,6 +74,7 @@ static match_table_t tokens = { | |||
74 | {Opt_nobarrier, "nobarrier"}, | 74 | {Opt_nobarrier, "nobarrier"}, |
75 | {Opt_max_extent, "max_extent=%s"}, | 75 | {Opt_max_extent, "max_extent=%s"}, |
76 | {Opt_alloc_start, "alloc_start=%s"}, | 76 | {Opt_alloc_start, "alloc_start=%s"}, |
77 | {Opt_ssd, "ssd"}, | ||
77 | {Opt_err, NULL} | 78 | {Opt_err, NULL} |
78 | }; | 79 | }; |
79 | 80 | ||
@@ -149,6 +150,12 @@ static int parse_options (char * options, | |||
149 | btrfs_set_opt(info->mount_opt, NODATASUM); | 150 | btrfs_set_opt(info->mount_opt, NODATASUM); |
150 | } | 151 | } |
151 | break; | 152 | break; |
153 | case Opt_ssd: | ||
154 | if (info) { | ||
155 | printk("btrfs: use ssd allocation scheme\n"); | ||
156 | btrfs_set_opt(info->mount_opt, SSD); | ||
157 | } | ||
158 | break; | ||
152 | case Opt_nobarrier: | 159 | case Opt_nobarrier: |
153 | if (info) { | 160 | if (info) { |
154 | printk("btrfs: turning off barriers\n"); | 161 | printk("btrfs: turning off barriers\n"); |