summaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-02 00:06:15 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:57 +0100
commit1e4eb7465438e47cc3718a02d4326dd034f3c0da (patch)
tree35ba323e319d89f15c3c45133144fa23dd96cbae /fs/btrfs/compression.h
parentc4bf665a3197554a696121d20f3bf11d084a6961 (diff)
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/compression.h')
-rw-r--r--fs/btrfs/compression.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 52dce1176f89..7db14d3166b5 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -140,23 +140,6 @@ struct btrfs_compress_op {
void (*free_workspace)(struct list_head *workspace);
- int (*compress_pages)(struct list_head *workspace,
- struct address_space *mapping,
- u64 start,
- struct page **pages,
- unsigned long *out_pages,
- unsigned long *total_in,
- unsigned long *total_out);
-
- int (*decompress_bio)(struct list_head *workspace,
- struct compressed_bio *cb);
-
- int (*decompress)(struct list_head *workspace,
- unsigned char *data_in,
- struct page *dest_page,
- unsigned long start_byte,
- size_t srclen, size_t destlen);
-
/* Maximum level supported by the compression algorithm */
unsigned int max_level;
unsigned int default_level;