Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nikanth Karthikesan and committed by
Jens Axboe
b1fffc9c 226e7dab

-5
-5
fs/gfs2/ops_fstype.c
··· 272 272 lock_page(page); 273 273 274 274 bio = bio_alloc(GFP_NOFS, 1); 275 - if (unlikely(!bio)) { 276 - __free_page(page); 277 - return -ENOBUFS; 278 - } 279 - 280 275 bio->bi_sector = sector * (sb->s_blocksize >> 9); 281 276 bio->bi_bdev = sb->s_bdev; 282 277 bio_add_page(bio, page, PAGE_SIZE, 0);