zram: simplify and optimize dev_to_zram()
Simplify and optimize dev_to_zram() without walking the zram_devices array. Signed-off-by: NJiang Liu <jiang.liu@huawei.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录