Skip to content

Commit b1fffc9

Browse files
Nikanth KarthikesanJens Axboe
authored andcommitted
gfs2: Remove code handling bio_alloc failure with __GFP_WAIT
Remove code handling bio_alloc failure with __GFP_WAIT. GFP_NOFS implies __GFP_WAIT. Signed-off-by: Nikanth Karthikesan <knikanth@suse.de> Acked-by: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent 226e7da commit b1fffc9

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎fs/gfs2/ops_fstype.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,6 @@ static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector)
272272
lock_page(page);
273273

274274
bio = bio_alloc(GFP_NOFS, 1);
275-
if (unlikely(!bio)) {
276-
__free_page(page);
277-
return -ENOBUFS;
278-
}
279-
280275
bio->bi_sector = sector * (sb->s_blocksize >> 9);
281276
bio->bi_bdev = sb->s_bdev;
282277
bio_add_page(bio, page, PAGE_SIZE, 0);

0 commit comments

Comments
 (0)