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

A message that is not in the archive (sent off-list or not yet received): [email protected]

Steven Whitehouse

author Acked-by
#1 lore raw

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);

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hi,

Quoted 11 lines · Jens Axboe
Quoted 6 lines · Steven Whitehouse

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,

Not much point in splitting it up for the trivial bits, unless you want to. I'll add your acked-by.

Yes, I agree. Sounds good to me,

Steve.