nilfs2: pass the operation to bio_alloc
authorChristoph Hellwig <hch@lst.de>
Tue, 22 Feb 2022 15:46:34 +0000 (16:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 27 Feb 2022 21:50:07 +0000 (14:50 -0700)
commitfbe7c2ef5e1d1c218190c059432cdc87043c1275
treee3180e2d51d5c623bc6b2fad2943df33a40dc092
parent4c4dad11ff85e25b64dd62adee63463e40cc596b
nilfs2: pass the operation to bio_alloc

Refactor the segbuf write code to pass the op to bio_alloc instead of
setting it just before the submission.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Link: https://lore.kernel.org/r/20220222154634.597067-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/nilfs2/segbuf.c