diff options
author | David Sterba <dsterba@suse.com> | 2019-10-02 00:06:15 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 12:46:57 +0100 |
commit | 1e4eb7465438e47cc3718a02d4326dd034f3c0da (patch) | |
tree | 35ba323e319d89f15c3c45133144fa23dd96cbae /fs/btrfs/lzo.c | |
parent | c4bf665a3197554a696121d20f3bf11d084a6961 (diff) | |
download | lwn-1e4eb7465438e47cc3718a02d4326dd034f3c0da.tar.gz lwn-1e4eb7465438e47cc3718a02d4326dd034f3c0da.zip |
btrfs: switch compression callbacks to direct calls
The indirect calls bring some overhead due to spectre vulnerability
mitigations. The number of cases is small and below the threshold
(10-20) where indirect call would be better.
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 | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index 04a6815ea9cb..9417944ec829 100644 --- a/fs/btrfs/lzo.c +++ b/fs/btrfs/lzo.c @@ -509,9 +509,6 @@ const struct btrfs_compress_op btrfs_lzo_compress = { .put_workspace = lzo_put_workspace, .alloc_workspace = lzo_alloc_workspace, .free_workspace = lzo_free_workspace, - .compress_pages = lzo_compress_pages, - .decompress_bio = lzo_decompress_bio, - .decompress = lzo_decompress, .max_level = 1, .default_level = 1, }; |