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

Refactor the mpage read/write page code to pass the op to bio_alloc
instead of setting it just before the submission.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220222154634.597067-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/mpage.c