diff options
author | Byongho Lee <bhlee.kernel@gmail.com> | 2015-10-14 07:05:24 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-10-21 18:28:48 +0200 |
commit | d91876496bcf2236efb75ef12378c964bbe8c970 (patch) | |
tree | 19c5725c87122fdd7f2fde484282c829e0d7f779 /fs/btrfs/reada.c | |
parent | btrfs: cleanup iterating over prop_handlers array (diff) | |
download | linux-d91876496bcf2236efb75ef12378c964bbe8c970.tar.xz linux-d91876496bcf2236efb75ef12378c964bbe8c970.zip |
btrfs: compress: put variables defined per compress type in struct to make cache friendly
Below variables are defined per compress type.
- struct list_head comp_idle_workspace[BTRFS_COMPRESS_TYPES]
- spinlock_t comp_workspace_lock[BTRFS_COMPRESS_TYPES]
- int comp_num_workspace[BTRFS_COMPRESS_TYPES]
- atomic_t comp_alloc_workspace[BTRFS_COMPRESS_TYPES]
- wait_queue_head_t comp_workspace_wait[BTRFS_COMPRESS_TYPES]
BTW, while accessing one compress type of these variables, the next or
before address is other compress types of it.
So this patch puts these variables in a struct to make cache friendly.
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions