diff options
| author | Miao Xie <[email protected]> | 2013-01-29 10:09:20 +0000 |
|---|---|---|
| committer | Josef Bacik <[email protected]> | 2013-02-20 12:59:04 -0500 |
| commit | e2d845211eda9cf296e8edf6724b3d541f4fbfd5 (patch) | |
| tree | 69acdf4bfe81d173673fee8d8104393e4b73681e /include/linux/timerqueue.h | |
| parent | c018daecead7a46a575e2a1397fea850b83396c8 (diff) | |
Btrfs: use percpu counter for dirty metadata count
->dirty_metadata_bytes is accessed very frequently, so use percpu
counter instead of the u64 variant to reduce the contention of
the lock.
This patch also fixed the problem that we access it without
lock protection in __btrfs_btree_balance_dirty(), which may
cause we skip the dirty pages flush.
Signed-off-by: Miao Xie <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions