5/7

mm/swap: use swap_ops to register swap device's methods

使用swap_ops统一注册swap设备方法,简化代码并便于添加新设备类型。