]> git.baikalelectronics.ru Git - kernel.git/commit
mm: simplify swapdev_block
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Feb 2021 17:14:19 +0000 (18:14 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 15:23:04 +0000 (08:23 -0700)
commit8e4be26396b19da2e6560bb051f7b01b0543f784
treee6d034e40b58a4ed08219a1c59d5d2b6f85af364
parent83cc6f52195d945e564c03c63fd8a3f5a6cfc499
mm: simplify swapdev_block

Open code the parts of map_swap_entry that was actually used by
swapdev_block, and remove the now unused map_swap_entry function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/swapfile.c