]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - block/bio.c
block: simplify bio_map_kern
authorChristoph Hellwig <hch@lst.de>
Sun, 18 Jan 2015 15:16:28 +0000 (16:16 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 5 Feb 2015 16:30:35 +0000 (09:30 -0700)
commit42d2683a2704ef4bbbb07fd0b9486ab312dd8c56
treecb58108edf8735e9f984ace40e48688d2c5c82f3
parentad9cf3bbd18a94806314741ac8092c3422f5aebe
block: simplify bio_map_kern

Just open code the trivial mapping from a kernel virtual address to
a bio instead of going through the complex user address mapping
machinery.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bio.c