aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.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/extent_io.c
parent0d81ba5dbedef0c3970d6aa318aa84920943e6e3 (diff)
Btrfs: Bring back mount -o ssd optimizations
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 7e3a1ebde9fc..6dab664529c1 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1730,6 +1730,8 @@ static int submit_extent_page(int rw, struct extent_io_tree *tree,
1730 if (bio_ret && *bio_ret) { 1730 if (bio_ret && *bio_ret) {
1731 bio = *bio_ret; 1731 bio = *bio_ret;
1732 if (bio->bi_sector + (bio->bi_size >> 9) != sector || 1732 if (bio->bi_sector + (bio->bi_size >> 9) != sector ||
1733 (tree->ops && tree->ops->merge_bio_hook &&
1734 tree->ops->merge_bio_hook(page, offset, size, bio)) ||
1733 bio_add_page(bio, page, size, offset) < size) { 1735 bio_add_page(bio, page, size, offset) < size) {
1734 ret = submit_one_bio(rw, bio); 1736 ret = submit_one_bio(rw, bio);
1735 bio = NULL; 1737 bio = NULL;