| To: | xfs-masters@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 6/7] xfs: Remove code handling bio_alloc failure with __GFP_WAIT |
| From: | Nikanth Karthikesan <knikanth@xxxxxxx> |
| Date: | Wed, 15 Apr 2009 10:36:48 +0530 |
| Cc: | xfs@xxxxxxxxxxx, Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Organization: | suse.de |
| User-agent: | KMail/1.11.1 (Linux/2.6.27.21-0.1-default; KDE/4.2.1; x86_64; ; ) |
Remove code handling bio_alloc failure with __GFP_WAIT.
GFP_NOIO implies __GFP_WAIT.
Signed-off-by: Nikanth Karthikesan <knikanth@xxxxxxx>
---
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 7ec89fc..fb4f516 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -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);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/7] Cleanup code that think bio_alloc with __GFP_WAIT can fail, Nikanth Karthikesan |
|---|---|
| Next by Date: | Re: [PATCH 0/7] Cleanup code that think bio_alloc with __GFP_WAIT can fail, Jens Axboe |
| Previous by Thread: | [PATCH 0/7] Cleanup code that think bio_alloc with __GFP_WAIT can fail, Nikanth Karthikesan |
| Next by Thread: | [RESEND][PATCH 6/7] xfs: Remove code handling bio_alloc failure with __GFP_WAIT, Nikanth Karthikesan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |