floppy: always use the track buffer
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Apr 2021 06:17:55 +0000 (08:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Apr 2021 15:29:57 +0000 (09:29 -0600)
commit3d86739c6343fb9c45ba7c4171ff35f526a49b5f
tree252228931cfbf3b194670efd2f95fa5ac6dcf336
parent4c6e5bc8c05f7d9a8da6da8d1811a7577f3f404b
floppy: always use the track buffer

Always use the track buffer that is already used for addresses outside
the 16MB address capability of the floppy controller.  This allows to
remove a lot of code that relies on kernel virtual addresses.  With
this gone there is just a single place left that looks at the bio,
which can be converted to memcpy_{from,to}_page, thus removing the need
for the extra block-layer bounce buffering for highmem pages.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210406061755.811522-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/floppy.c