Patchwork [4/7] ext4: Remove code handling bio_alloc failure with __GFP_WAIT

login
register
mail settings
Submitter Nikanth Karthikesan
Date April 15, 2009, 5:06 a.m.
Message ID <200904151036.16541.knikanth@suse.de>
Download mbox | patch
Permalink /patch/25964/
State New
Headers show

Comments

Nikanth Karthikesan - April 15, 2009, 5:06 a.m.
Remove code handling bio_alloc failure with __GFP_WAIT.
GFP_NOIO implies __GFP_WAIT.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>

---


--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 6132353..2a1cb09 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2416,8 +2416,6 @@  static int ext4_ext_zeroout(struct inode *inode, struct ext4_extent *ex)
 			len = ee_len;
 
 		bio = bio_alloc(GFP_NOIO, len);
-		if (!bio)
-			return -ENOMEM;
 		bio->bi_sector = ee_pblock;
 		bio->bi_bdev   = inode->i_sb->s_bdev;