Skip to contentSkip to conversation

gfs2: Remove code handling bio_alloc failure with __GFP_WAIT

PATCH Steven Whitehouse 1 participant 2 messages Apr 15, 2009 2 messages not in the archive

lore
Share & tools
lore

Steven Whitehouse

author Acked-by
#1 lore raw
In reply to a message not in the archive

Hi,

I could put this in my tree, but I think that Jens is going to push this one to Linus, so I'm holding off,

Steve.

Quoted 24 lines · Nikanth Karthikesan

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

---

fs/gfs2/ops_fstype.c +0 -5
index 51883b3..650a730 100644
@@ -272,11 +272,6 @@ static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector)
 	lock_page(page);
 
 	bio = bio_alloc(GFP_NOFS, 1);
-	if (unlikely(!bio)) {
-		__free_page(page);
-		return -ENOBUFS;
-	}
-
 	bio->bi_sector = sector * (sb->s_blocksize >> 9);
 	bio->bi_bdev = sb->s_bdev;
 	bio_add_page(bio, page, PAGE_SIZE, 0);