]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Btrfs: make the device lock and its protected data in the same cacheline
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 24 Jul 2014 03:37:10 +0000 (11:37 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:45 +0000 (13:37 -0700)
commitd5ee37bcb1dff9c1d1cac5f7e5752309f1ff66b6
tree769d23c296d9630af81595dd2071d029682e0895
parent5f546063cee93047af90cf2756e023da9f9fca51
Btrfs: make the device lock and its protected data in the same cacheline

The lock in btrfs_device structure was far away from its protected data, it would
make CPU load the cache line twice when we accessed them, move them together.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.h