diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2009-04-15 10:36:35 +0530 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-15 12:10:13 +0200 |
commit | b1fffc9ca6ca4c3feef3a7e8405252d528d312dc (patch) | |
tree | 5e1de773cf0b874c7452e388f1c9c0563c08e96f /fs | |
parent | 226e7dabf5534722944adefbad01970bd38bb7ae (diff) | |
download | op-kernel-dev-b1fffc9ca6ca4c3feef3a7e8405252d528d312dc.zip op-kernel-dev-b1fffc9ca6ca4c3feef3a7e8405252d528d312dc.tar.gz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 51883b3..650a730 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c @@ -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); |