aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2024-10-09 14:31:25 +0000
committerDavid Sterba <[email protected]>2024-11-11 13:34:16 +0000
commit3f4b1bc1c0b594bb6b059e6e2be0f3a7c2bca1d0 (patch)
treec8b05558539e2e767f4831bf5fd7c462f3e0310b /fs/btrfs/compression.c
parentbtrfs: drop unused transaction parameter from btrfs_qgroup_add_swapped_blocks() (diff)
downloadkernel-3f4b1bc1c0b594bb6b059e6e2be0f3a7c2bca1d0.tar.gz
kernel-3f4b1bc1c0b594bb6b059e6e2be0f3a7c2bca1d0.zip
btrfs: lzo: drop unused paramter level from lzo_alloc_workspace()
The LZO compression has only one level, we don't need to pass the parameter. Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index 6e9c4a5e0d51..655e3212b409 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -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:
/*