]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: lzo: drop unused paramter level from lzo_alloc_workspace()
authorDavid Sterba <dsterba@suse.com>
Wed, 9 Oct 2024 14:31:25 +0000 (16:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:16 +0000 (14:34 +0100)
The LZO compression has only one level, we don't need to pass the
parameter.

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

index 6e9c4a5e0d51af5a2efc5141880bbc6026c1e189..655e3212b4093b7170c6e3291b5f219860ebfcc4 100644 (file)
@@ -746,7 +746,7 @@ 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_ZLIB: return zlib_alloc_workspace(level);
-       case BTRFS_COMPRESS_LZO:  return lzo_alloc_workspace(level);
+       case BTRFS_COMPRESS_LZO:  return lzo_alloc_workspace();
        case BTRFS_COMPRESS_ZSTD: return zstd_alloc_workspace(level);
        default:
                /*
index b6563b6a333e5d31b93c65c9fe2cdaf57d67a68f..954034086d0d44b33d61bfd32fc6ee849505adcc 100644 (file)
@@ -175,7 +175,7 @@ int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
 int lzo_decompress(struct list_head *ws, const u8 *data_in,
                struct folio *dest_folio, unsigned long dest_pgoff, size_t srclen,
                size_t destlen);
-struct list_head *lzo_alloc_workspace(unsigned int level);
+struct list_head *lzo_alloc_workspace(void);
 void lzo_free_workspace(struct list_head *ws);
 
 int zstd_compress_folios(struct list_head *ws, struct address_space *mapping,
index 72856f6775f7f17e8a5633ae436b2dcfe12b434a..a45bc11f866531b95fc4a4384a6e646b764741dd 100644 (file)
@@ -80,7 +80,7 @@ void lzo_free_workspace(struct list_head *ws)
        kfree(workspace);
 }
 
-struct list_head *lzo_alloc_workspace(unsigned int level)
+struct list_head *lzo_alloc_workspace(void)
 {
        struct workspace *workspace;