nilfs2: remove nilfs_alloc_seg_bio
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:10:50 +0000 (10:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:49:59 +0000 (07:49 -0700)
commitf0d911927b3c7cf5f9edb5941d0287144a602d0d
tree12a49ba2fc9f6be83eca80cbb80b98c8249f6bb7
parentd5f68a42da7a4516e7503c281a54a58727f07dc3
nilfs2: remove nilfs_alloc_seg_bio

bio_alloc will never fail when it can sleep.  Remove the now simple
nilfs_alloc_seg_bio helper and open code it in the only caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220124091107.642561-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/nilfs2/segbuf.c