4/18

mm/swap: introduce swap device iteration helper

为遍历 swap_info 找可用设备的用户引入通用迭代 helper,并调整 __swap_type_to_info 允许访问已 swapoff 设备,把合法性检查移到 __swap_entry_to_info;为后续去掉锁约定铺路。