]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38969af6538b7430792a1d452db68237b1c523d2
tree252228931cfbf3b194670efd2f95fa5ac6dcf336
parent16cbf91162dea8fe6b45bd759e64d05a37dc2cac
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