summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-04 02:47:39 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:58 +0100
commitc778df140644142fb7e12b7e468b137721d85890 (patch)
tree7cec8998035612f5530575ca2ad893855285c986 /fs/btrfs/compression.h
parentbtrfs: compression: pass type to btrfs_get_workspace (diff)
downloadlinux-c778df140644142fb7e12b7e468b137721d85890.tar.xz
linux-c778df140644142fb7e12b7e468b137721d85890.zip
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/compression.h')
-rw-r--r--fs/btrfs/compression.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index accb1d61df87..8336c2ef6b5a 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -124,8 +124,6 @@ struct list_head *btrfs_get_workspace(int type, unsigned int level);
void btrfs_put_workspace(struct workspace_manager *wsm, struct list_head *ws);
struct btrfs_compress_op {
- struct list_head *(*alloc_workspace)(unsigned int level);
-
void (*free_workspace)(struct list_head *workspace);
struct workspace_manager *workspace_manager;