summaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-04 03:57:22 +0300
committerDavid Sterba <dsterba@suse.com>2019-11-18 14:46:59 +0300
commit1e002351605db4f2fc4114cbb973d5aead72d006 (patch)
tree419e0e6d31355814df45e972df173869aa6bf399 /fs/btrfs/compression.h
parenta3bbd2a9ee3c08b60b3127843866bdc76757c24f (diff)
downloadlinux-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/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 664b029cd5e4..14057498dcbb 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(int type, struct list_head *ws);
struct btrfs_compress_op {
- void (*free_workspace)(struct list_head *workspace);
-
struct workspace_manager *workspace_manager;
/* Maximum level supported by the compression algorithm */
unsigned int max_level;