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)
commitf885056a48ccf4ad4332def91e973f3993fa8695
treee6d034e40b58a4ed08219a1c59d5d2b6f85af364
parent78e1663f19b5c34579cf186e776df3bf1ed326a5
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