Skip to contentSkip to conversation

ext4: Remove code handling bio_alloc failure with __GFP_WAIT

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

lore
Share & tools
lore
#0 lore raw

PATCH 4/7 ext4: Remove code handling bio_alloc failure with __GFP_WAIT

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

---

fs/ext4/extents.c +0 -2
index 6132353..2a1cb09 100644
@@ -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;