mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
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>
This commit is contained in:
parent
a3bbd2a9ee
commit
1e00235160
5 changed files with 18 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue