]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: drop unused parameter level from alloc_heuristic_ws()
authorDavid Sterba <dsterba@suse.com>
Wed, 9 Oct 2024 14:32:25 +0000 (16:32 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:17 +0000 (14:34 +0100)
The compression heuristic pass does not need a level, so we can drop the
parameter.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c

index 655e3212b4093b7170c6e3291b5f219860ebfcc4..abcf8ed06afc0f387ceddd4e9e7988233cc01f37 100644 (file)
@@ -702,7 +702,7 @@ static void free_heuristic_ws(struct list_head *ws)
        kfree(workspace);
 }
 
-static struct list_head *alloc_heuristic_ws(unsigned int level)
+static struct list_head *alloc_heuristic_ws(void)
 {
        struct heuristic_ws *ws;
 
@@ -744,7 +744,7 @@ static const struct btrfs_compress_op * const btrfs_compress_op[] = {
 static struct list_head *alloc_workspace(int type, unsigned int level)
 {
        switch (type) {
-       case BTRFS_COMPRESS_NONE: return alloc_heuristic_ws(level);
+       case BTRFS_COMPRESS_NONE: return alloc_heuristic_ws();
        case BTRFS_COMPRESS_ZLIB: return zlib_alloc_workspace(level);
        case BTRFS_COMPRESS_LZO:  return lzo_alloc_workspace();
        case BTRFS_COMPRESS_ZSTD: return zstd_alloc_workspace(level);