Skip to contentSkip to conversation

xfs: Remove code handling bio_alloc failure with __GFP_WAIT

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

lore
Share & tools
lore
#0 lore raw

PATCH 6/7 xfs: Remove code handling bio_alloc failure with __GFP_WAIT

Remove code handling bio_alloc failure with __GFP_WAIT. GFP_NOIO implies __GFP_WAIT.

---

fs/xfs/linux-2.6/xfs_aops.c +1 -4
index 7ec89fc..fb4f516 100644
@@ -421,10 +421,7 @@ xfs_alloc_ioend_bio(
 	struct bio		*bio;
 	int			nvecs = bio_get_nr_vecs(bh->b_bdev);
 
-	do {
-		bio = bio_alloc(GFP_NOIO, nvecs);
-		nvecs >>= 1;
-	} while (!bio);
+	bio = bio_alloc(GFP_NOIO, nvecs);
 
 	ASSERT(bio->bi_private == NULL);
 	bio->bi_sector = bh->b_blocknr * (bh->b_size >> 9);

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs