aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-04 02:42:03 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:58 +0100
commitbd3a5287cc20e37f1e365be1f742b6c574e3f83c (patch)
tree09ebef6c4c77751d82aaffaf65dd74579cd3e569 /fs/btrfs/compression.h
parentbtrfs: compression: inline get_workspace (diff)
downloadlinux-dev-bd3a5287cc20e37f1e365be1f742b6c574e3f83c.tar.xz
linux-dev-bd3a5287cc20e37f1e365be1f742b6c574e3f83c.zip
btrfs: compression: inline put_workspace
Similar to get_workspace, majority of the callbacks is trivial, we don't gain anything by the indirection, so replace them by a switch function. Trivial callback implementations use the helper. 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 df7274c1a5d8..b8ed97fc6db4 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -125,8 +125,6 @@ struct list_head *btrfs_get_workspace(struct workspace_manager *wsm,
void btrfs_put_workspace(struct workspace_manager *wsm, struct list_head *ws);
struct btrfs_compress_op {
- void (*put_workspace)(struct list_head *ws);
-
struct list_head *(*alloc_workspace)(unsigned int level);
void (*free_workspace)(struct list_head *workspace);