diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-01-15 20:00:54 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 13:20:38 -0800 |
commit | 26b47ff65bcdff8473b87680d8f876c66208087b (patch) | |
tree | ae3b44171edfed95b63efd89f86b993216c0d203 /fs/hostfs | |
parent | ffcfaf81795471be3c07d6e3143bff31edca5d5a (diff) | |
download | linux-stable-26b47ff65bcdff8473b87680d8f876c66208087b.tar.gz linux-stable-26b47ff65bcdff8473b87680d8f876c66208087b.tar.bz2 linux-stable-26b47ff65bcdff8473b87680d8f876c66208087b.zip |
Btrfs: change the members' order of btrfs_space_info structure to reduce the cache miss
It is better that the position of the lock is close to the data which is
protected by it, because they may be in the same cache line, we will load
less cache lines when we access them. So we rearrange the members' position
of btrfs_space_info structure to make the lock be closer to the its data.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/hostfs')
0 files changed, 0 insertions, 0 deletions