Skip to contentSkip to conversation

swap: Remove code handling bio_alloc failure with __GFP_WAIT

PATCH In review Nikanth Karthikesan 1 participant 1 message Apr 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/7 swap: Remove code handling bio_alloc failure with __GFP_WAIT

Remove code handling bio_alloc failure with __GFP_WAIT.

---

kernel/power/swap.c +0 -2
index 505f319..8ba052c 100644
@@ -64,8 +64,6 @@ static int submit(int rw, pgoff_t page_off, struct page *page,
 	struct bio *bio;
 
 	bio = bio_alloc(__GFP_WAIT | __GFP_HIGH, 1);
-	if (!bio)
-		return -ENOMEM;
 	bio->bi_sector = page_off * (PAGE_SIZE >> 9);
 	bio->bi_bdev = resume_bdev;
 	bio->bi_end_io = end_swap_bio_read;