summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-21 10:19:56 +0300
committerJens Axboe <axboe@kernel.dk>2020-09-23 19:43:19 +0300
commit21bd900572f3708e281ea25f051fc92462eb1193 (patch)
tree6a35266ebc9c5c5c49d7245861a80f391900934c /Kconfig
parentbb3247a399801ebba20bef101c89e563f5fe7f02 (diff)
downloadlinux-21bd900572f3708e281ea25f051fc92462eb1193.tar.xz
mm: split swap_type_of
swap_type_of is used for two entirely different purposes: (1) check what swap type a given device/offset corresponds to (2) find the first available swap device that can be written to Mixing both in a single function creates an unreadable mess. Create two separate functions instead, and switch both to pass a dev_t instead of a struct block_device to further simplify the code. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions