From: Miao Xie Date: Tue, 29 Jan 2013 10:09:20 +0000 (+0000) Subject: Btrfs: use percpu counter for dirty metadata count X-Git-Tag: v3.9-rc1~17^2~29^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2d845211eda9cf296e8edf6724b3d541f4fbfd5;p=pandora-kernel.git 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 Signed-off-by: Josef Bacik --- Reading git-diff-tree failed