btrfs: compression: inline put_workspace
authorDavid Sterba <dsterba@suse.com>
Fri, 4 Oct 2019 00:42:03 +0000 (02:42 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:58 +0000 (12:46 +0100)
commitbd3a5287cc20e37f1e365be1f742b6c574e3f83c
tree09ebef6c4c77751d82aaffaf65dd74579cd3e569
parent6a0d12724bd2dd1c766769578e221ce1d10a4656
btrfs: compression: inline put_workspace

Similar to get_workspace, majority of the callbacks is trivial, we don't
gain anything by the indirection, so replace them by a switch function.
Trivial callback implementations use the helper.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/lzo.c
fs/btrfs/zlib.c
fs/btrfs/zstd.c