]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gfs2: Remove code handling bio_alloc failure with __GFP_WAIT
authorNikanth Karthikesan <knikanth@suse.de>
Wed, 15 Apr 2009 05:06:35 +0000 (10:36 +0530)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 15 Apr 2009 10:10:13 +0000 (12:10 +0200)
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>
fs/gfs2/ops_fstype.c

index 51883b3ad89cd3359d5e489b7befec257650df60..650a730707b767515ce24e51a37cf2cf3f3fd6f4 100644 (file)
@@ -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);