diff options
author | David Sterba <dsterba@suse.com> | 2019-10-04 03:47:39 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 14:46:58 +0300 |
commit | c778df140644142fb7e12b7e468b137721d85890 (patch) | |
tree | 7cec8998035612f5530575ca2ad893855285c986 /fs/btrfs/lzo.c | |
parent | 5907a9bb13cea3bbf0c54d6a9a1ccf5edebedeed (diff) | |
download | linux-c778df140644142fb7e12b7e468b137721d85890.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/lzo.c')
-rw-r--r-- | fs/btrfs/lzo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index bbf917c5ff2d..39b2cf80f77c 100644 --- a/fs/btrfs/lzo.c +++ b/fs/btrfs/lzo.c @@ -484,7 +484,6 @@ out: const struct btrfs_compress_op btrfs_lzo_compress = { .workspace_manager = &wsm, - .alloc_workspace = lzo_alloc_workspace, .free_workspace = lzo_free_workspace, .max_level = 1, .default_level = 1, |