提交 961d0232 编写于 作者: C Chris Mason

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

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册