btrfs: plumb level through the compression interface
[sfrench/cifs-2.6.git] / fs / btrfs / zstd.c
index b06eaf171be7100bc66e49aab74511924678bee2..404101864220ec8d793f42473c7ff9b0fbc83e0f 100644 (file)
@@ -53,9 +53,9 @@ static void zstd_cleanup_workspace_manager(void)
        btrfs_cleanup_workspace_manager(&wsm);
 }
 
        btrfs_cleanup_workspace_manager(&wsm);
 }
 
-static struct list_head *zstd_get_workspace(void)
+static struct list_head *zstd_get_workspace(unsigned int level)
 {
 {
-       return btrfs_get_workspace(&wsm);
+       return btrfs_get_workspace(&wsm, level);
 }
 
 static void zstd_put_workspace(struct list_head *ws)
 }
 
 static void zstd_put_workspace(struct list_head *ws)
@@ -72,7 +72,7 @@ static void zstd_free_workspace(struct list_head *ws)
        kfree(workspace);
 }
 
        kfree(workspace);
 }
 
-static struct list_head *zstd_alloc_workspace(void)
+static struct list_head *zstd_alloc_workspace(unsigned int level)
 {
        ZSTD_parameters params =
                        zstd_get_btrfs_parameters(ZSTD_BTRFS_MAX_INPUT);
 {
        ZSTD_parameters params =
                        zstd_get_btrfs_parameters(ZSTD_BTRFS_MAX_INPUT);