diff options
author | Christoph Hellwig <hch@lst.de> | 2021-01-26 15:52:46 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-01-27 17:51:48 +0100 |
commit | 64820ac6c6962f76d164fa690deaa688d59278e2 (patch) | |
tree | ea25e1c9bee305d4f4fd04293f623b5fe71fb691 /fs/nilfs2 | |
parent | nfs/blocklayout: remove cruft in bl_alloc_init_bio (diff) | |
download | linux-64820ac6c6962f76d164fa690deaa688d59278e2.tar.xz linux-64820ac6c6962f76d164fa690deaa688d59278e2.zip |
nilfs2: remove cruft in nilfs_alloc_seg_bio
bio_alloc never returns NULL when it can sleep.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/segbuf.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c index 1a8729eded8b..1e75417bfe6e 100644 --- a/fs/nilfs2/segbuf.c +++ b/fs/nilfs2/segbuf.c @@ -386,10 +386,6 @@ static struct bio *nilfs_alloc_seg_bio(struct the_nilfs *nilfs, sector_t start, struct bio *bio; bio = bio_alloc(GFP_NOIO, nr_vecs); - if (bio == NULL) { - while (!bio && (nr_vecs >>= 1)) - bio = bio_alloc(GFP_NOIO, nr_vecs); - } if (likely(bio)) { bio_set_dev(bio, nilfs->ns_bdev); bio->bi_iter.bi_sector = |