Commit afd1dacb authored by George Hu's avatar George Hu Committed by David Sterba
Browse files

btrfs: replace nested usage of min & max with clamp in btrfs_compress_set_level()



Refactor the btrfs_compress_set_level() function by replacing the
nested usage of min() and max() macro with clamp() to simplify the
code and improve readability.

Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarGeorge Hu <integral@archlinux.org>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2fb5e56f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment