diff options
author | David Sterba <dsterba@suse.com> | 2019-10-04 03:57:22 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 14:46:59 +0300 |
commit | 1e002351605db4f2fc4114cbb973d5aead72d006 (patch) | |
tree | 419e0e6d31355814df45e972df173869aa6bf399 /fs/btrfs/zlib.c | |
parent | a3bbd2a9ee3c08b60b3127843866bdc76757c24f (diff) | |
download | linux-1e002351605db4f2fc4114cbb973d5aead72d006.tar.xz |
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/zlib.c')
-rw-r--r-- | fs/btrfs/zlib.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c index c5dfab3ab082..a6c90a003c12 100644 --- a/fs/btrfs/zlib.c +++ b/fs/btrfs/zlib.c @@ -400,7 +400,6 @@ next: const struct btrfs_compress_op btrfs_zlib_compress = { .workspace_manager = &wsm, - .free_workspace = zlib_free_workspace, .max_level = 9, .default_level = BTRFS_ZLIB_DEFAULT_LEVEL, }; |