summaryrefslogtreecommitdiff
path: root/fs/btrfs/lzo.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-04 02:57:22 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:59 +0100
commit1e002351605db4f2fc4114cbb973d5aead72d006 (patch)
tree419e0e6d31355814df45e972df173869aa6bf399 /fs/btrfs/lzo.c
parenta3bbd2a9ee3c08b60b3127843866bdc76757c24f (diff)
btrfs: compression: inline free_workspace
Replace indirect calls to free_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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c
index 39b2cf80f77c..aa9cd11f4b78 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,
- .free_workspace = lzo_free_workspace,
.max_level = 1,
.default_level = 1,
};