aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-03-24 15:02:07 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commit239b14b32dc39232ebf9cce29ff77c4c564355fd (patch)
treef7a95d97d71ef9d0f355a71a83e2ba1f62944e04 /fs/btrfs/volumes.c
parent0d81ba5dbedef0c3970d6aa318aa84920943e6e3 (diff)
Btrfs: Bring back mount -o ssd optimizations
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index ae22d01ecf54..16fb6bbe6e28 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -578,6 +578,11 @@ int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio)
578 map_tree = &root->fs_info->mapping_tree; 578 map_tree = &root->fs_info->mapping_tree;
579 map_length = length; 579 map_length = length;
580 ret = btrfs_map_block(map_tree, logical, &physical, &map_length, &dev); 580 ret = btrfs_map_block(map_tree, logical, &physical, &map_length, &dev);
581 if (map_length < length) {
582 printk("mapping failed logical %Lu bio len %Lu physical %Lu "
583 "len %Lu\n", logical, length, physical, map_length);
584 BUG();
585 }
581 BUG_ON(map_length < length); 586 BUG_ON(map_length < length);
582 bio->bi_sector = physical >> 9; 587 bio->bi_sector = physical >> 9;
583 bio->bi_bdev = dev->bdev; 588 bio->bi_bdev = dev->bdev;