aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-21 10:03:05 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commitf2d8d74d7874f8f81222363cd6459a365796e35a (patch)
tree2d081c85d9e88006f084cc17fc1ffa262b885e37 /fs/btrfs/inode.c
parent4ef64eae288a3644d1f8b748eb075426701e96d1 (diff)
Btrfs: Make an unplug function that doesn't unplug every spindle
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 5b1514e58de4..e875c7c8a647 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -313,13 +313,9 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset,
313 u64 logical = bio->bi_sector << 9; 313 u64 logical = bio->bi_sector << 9;
314 u64 length = 0; 314 u64 length = 0;
315 u64 map_length; 315 u64 map_length;
316 struct bio_vec *bvec;
317 int i;
318 int ret; 316 int ret;
319 317
320 bio_for_each_segment(bvec, bio, i) { 318 length = bio->bi_size;
321 length += bvec->bv_len;
322 }
323 map_tree = &root->fs_info->mapping_tree; 319 map_tree = &root->fs_info->mapping_tree;
324 map_length = length; 320 map_length = length;
325 ret = btrfs_map_block(map_tree, READ, logical, 321 ret = btrfs_map_block(map_tree, READ, logical,