OSDN Git Service

btrfs: Add nossd_spread mount option
authorHoward McLauchlan <hmclauchlan@fb.com>
Thu, 8 Mar 2018 18:48:48 +0000 (10:48 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 23:26:52 +0000 (01:26 +0200)
commit62b8e077317971b74d79c9cc501db2ae861d48b2
tree29473f3709f80ca745b5844a5edbe4116255f8b2
parent92e2f7e37004115db2ba98c6999a74ff5e41c83f
btrfs: Add nossd_spread mount option

Btrfs has two mount options for SSD optimizations: ssd and ssd_spread.
Presently there is an option to disable all SSD optimizations, but there
isn't an option to disable just ssd_spread.

This patch adds a mount option nossd_spread that disables ssd_spread
only.

Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Howard McLauchlan <hmclauchlan@fb.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c