Skip to content

Commit a9c50c9

Browse files
committed
btrfs: drop unused parameter level from alloc_heuristic_ws()
The compression heuristic pass does not need a level, so we can drop the parameter. Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 8c7cd2b commit a9c50c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/compression.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ static void free_heuristic_ws(struct list_head *ws)
702702
kfree(workspace);
703703
}
704704

705-
static struct list_head *alloc_heuristic_ws(unsigned int level)
705+
static struct list_head *alloc_heuristic_ws(void)
706706
{
707707
struct heuristic_ws *ws;
708708

@@ -744,7 +744,7 @@ static const struct btrfs_compress_op * const btrfs_compress_op[] = {
744744
static struct list_head *alloc_workspace(int type, unsigned int level)
745745
{
746746
switch (type) {
747-
case BTRFS_COMPRESS_NONE: return alloc_heuristic_ws(level);
747+
case BTRFS_COMPRESS_NONE: return alloc_heuristic_ws();
748748
case BTRFS_COMPRESS_ZLIB: return zlib_alloc_workspace(level);
749749
case BTRFS_COMPRESS_LZO: return lzo_alloc_workspace();
750750
case BTRFS_COMPRESS_ZSTD: return zstd_alloc_workspace(level);

0 commit comments

Comments
 (0)