diff options
| author | Christoph Hellwig <[email protected]> | 2022-01-24 09:11:05 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-02-02 14:49:59 +0000 |
| commit | 07888c665b405b1cd3577ddebfeb74f4717a84c4 (patch) | |
| tree | fe3700fcd1b741ddd3caa84a184a8aaaf9e098d7 /fs/fs-writeback.c | |
| parent | block: pass a block_device and opf to bio_alloc_kiocb (diff) | |
| download | kernel-07888c665b405b1cd3577ddebfeb74f4717a84c4.tar.gz kernel-07888c665b405b1cd3577ddebfeb74f4717a84c4.zip | |
block: pass a block_device and opf to bio_alloc
Pass the block_device and operation that we plan to use this bio for to
bio_alloc to optimize the assignment. NULL/0 can be passed, both for the
passthrough case on a raw request_queue and to temporarily avoid
refactoring some nasty code.
Also move the gfp_mask argument after the nr_vecs argument for a much
more logical calling convention matching what most of the kernel does.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/fs-writeback.c')
0 files changed, 0 insertions, 0 deletions
