From: Eric Dumazet Date: Sun, 26 Mar 2006 09:37:24 +0000 (-0800) Subject: [PATCH] Use __read_mostly on some hot fs variables X-Git-Tag: v2.6.17-rc1~633 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa3536cc144c1298f2ed9416c33f3b77fa2cd37a;p=pandora-kernel.git [PATCH] Use __read_mostly on some hot fs variables I discovered on oprofile hunting on a SMP platform that dentry lookups were slowed down because d_hash_mask, d_hash_shift and dentry_hashtable were in a cache line that contained inodes_stat. So each time inodes_stats is changed by a cpu, other cpus have to refill their cache line. This patch moves some variables to the __read_mostly section, in order to avoid false sharing. RCU dentry lookups can go full speed. Signed-off-by: Eric Dumazet Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed