]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - mm/zswap.c
mm/zpool: add name argument to create zpool
[mirror_ubuntu-zesty-kernel.git] / mm / zswap.c
index 0cfce9bc51e4946c561e48b8cb5f9e6cf7669d5f..4249e82ff934d9fec506fcc7db56d57d48efaf9c 100644 (file)
@@ -906,11 +906,12 @@ static int __init init_zswap(void)
 
        pr_info("loading zswap\n");
 
-       zswap_pool = zpool_create_pool(zswap_zpool_type, gfp, &zswap_zpool_ops);
+       zswap_pool = zpool_create_pool(zswap_zpool_type, "zswap", gfp,
+                                       &zswap_zpool_ops);
        if (!zswap_pool && strcmp(zswap_zpool_type, ZSWAP_ZPOOL_DEFAULT)) {
                pr_info("%s zpool not available\n", zswap_zpool_type);
                zswap_zpool_type = ZSWAP_ZPOOL_DEFAULT;
-               zswap_pool = zpool_create_pool(zswap_zpool_type, gfp,
+               zswap_pool = zpool_create_pool(zswap_zpool_type, "zswap", gfp,
                                        &zswap_zpool_ops);
        }
        if (!zswap_pool) {