Displaying 1 result from an estimated 1 matches for "extent_bio_alloc".
2008 Mar 15
1
extent_io.c: bio_add_page() error check for bio ptr
...BUG_ON(!bio);
if (bio->bi_sector + (bio->bi_size >> 9) != sector ||
bio_add_page(bio, page, size, offset) < size) {
ret = submit_one_bio(rw, bio);
@@ -1741,6 +1742,7 @@ static int submit_extent_page(int rw, st
bio = extent_bio_alloc(bdev, sector, nr, GFP_NOFS | __GFP_HIGH);
if (!bio) {
printk("failed to allocate bio nr %d\n", nr);
+ BUG_ON(!bio);
}
--
Regards,
Peter Teoh