Skip to content
Commit d5ee37bc authored by Miao Xie's avatar Miao Xie Committed by Chris Mason
Browse files

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: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 5f546063
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment