btrfs: compression: inline alloc_workspace
authorDavid Sterba <dsterba@suse.com>
Fri, 4 Oct 2019 00:47:39 +0000 (02:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:58 +0000 (12:46 +0100)
commitc778df140644142fb7e12b7e468b137721d85890
tree7cec8998035612f5530575ca2ad893855285c986
parent5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed
btrfs: compression: inline alloc_workspace

Replace indirect calls to alloc_workspace by switch and calls to the
specific callbacks. This is mainly to get rid of the indirection due to
spectre vulnerability mitigations.

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