mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
Btrfs: Make an unplug function that doesn't unplug every spindle
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
4ef64eae28
commit
f2d8d74d78
4 changed files with 75 additions and 38 deletions
|
@ -313,13 +313,9 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset,
|
|||
u64 logical = bio->bi_sector << 9;
|
||||
u64 length = 0;
|
||||
u64 map_length;
|
||||
struct bio_vec *bvec;
|
||||
int i;
|
||||
int ret;
|
||||
|
||||
bio_for_each_segment(bvec, bio, i) {
|
||||
length += bvec->bv_len;
|
||||
}
|
||||
length = bio->bi_size;
|
||||
map_tree = &root->fs_info->mapping_tree;
|
||||
map_length = length;
|
||||
ret = btrfs_map_block(map_tree, READ, logical,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue