btrfs: manage heuristic workspace as index 0
[sfrench/cifs-2.6.git] / fs / btrfs / compression.h
index 004db0b3111b6d54e94a2d1c65483e362df74363..9a0e73c65b871ccf323420a4f3b865215f64a4f2 100644 (file)
@@ -132,6 +132,10 @@ struct btrfs_compress_op {
        void (*set_level)(struct list_head *ws, unsigned int type);
 };
 
        void (*set_level)(struct list_head *ws, unsigned int type);
 };
 
+/* The heuristic workspaces are managed via the 0th workspace manager */
+#define BTRFS_NR_WORKSPACE_MANAGERS    (BTRFS_COMPRESS_TYPES + 1)
+
+extern const struct btrfs_compress_op btrfs_heuristic_compress;
 extern const struct btrfs_compress_op btrfs_zlib_compress;
 extern const struct btrfs_compress_op btrfs_lzo_compress;
 extern const struct btrfs_compress_op btrfs_zstd_compress;
 extern const struct btrfs_compress_op btrfs_zlib_compress;
 extern const struct btrfs_compress_op btrfs_lzo_compress;
 extern const struct btrfs_compress_op btrfs_zstd_compress;