Commit 961d0232 authored by Chris Mason's avatar Chris Mason

Btrfs: Don't case unsigned long to int in bio submission

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 5d196fc1
......@@ -1705,7 +1705,7 @@ static int submit_extent_page(int rw, struct extent_io_tree *tree,
return 0;
}
}
nr = min_t(int, max_pages, bio_get_nr_vecs(bdev));
nr = bio_get_nr_vecs(bdev);
bio = extent_bio_alloc(bdev, sector, nr, GFP_NOFS | __GFP_HIGH);
if (!bio) {
printk("failed to allocate bio nr %d\n", nr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment