]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: autodetect SSD devices
authorChris Mason <chris.mason@oracle.com>
Wed, 10 Jun 2009 13:51:32 +0000 (09:51 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 10 Jun 2009 15:29:52 +0000 (11:29 -0400)
commit33c58aca21e36fe9d4c5af90fd1aed45da40e454
tree47599d47419911c8365e0350e286dece1d5e48dd
parent686fc8861f0bbcda346f425ef4a5d31952fe40fc
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>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/super.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h