Btrfs: autodetect SSD devices
During mount, btrfs will check the queue nonrot flag for all the devices found in the FS. If they are all non-rotating, SSD mode is enabled by default. If the FS was mounted with -o nossd, the non-rotating flag is ignored. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
@ -107,6 +107,11 @@ struct btrfs_fs_devices {
|
||||
int seeding;
|
||||
|
||||
int opened;
|
||||
|
||||
/* set when we find or add a device that doesn't have the
|
||||
* nonrot flag set
|
||||
*/
|
||||
int rotating;
|
||||
};
|
||||
|
||||
struct btrfs_bio_stripe {
|
||||
|
Reference in New Issue
Block a user