]> 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)
commitc8048c3bb0b5e7c159722800df6a78e1b2d1a18f
treee6d034e40b58a4ed08219a1c59d5d2b6f85af364
parent9ce35e54964c6cf549d9124cb201a588fdcf80e2
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