summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_aops.c
diff options
context:
space:
mode:
authorByongho Lee <bhlee.kernel@gmail.com>2015-10-14 14:05:24 +0900
committerDavid Sterba <dsterba@suse.com>2015-10-21 18:28:48 +0200
commitd91876496bcf2236efb75ef12378c964bbe8c970 (patch)
tree19c5725c87122fdd7f2fde484282c829e0d7f779 /fs/xfs/xfs_aops.c
parent619ed39242d901339c09faa1b52dad47b0476f6f (diff)
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 'fs/xfs/xfs_aops.c')
0 files changed, 0 insertions, 0 deletions