diff options
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 0778f49f993b..19458d399502 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include <linux/bootmem.h> | 35 | #include <linux/bootmem.h> |
36 | 36 | ||
37 | 37 | ||
38 | int sysctl_vfs_cache_pressure = 100; | 38 | int sysctl_vfs_cache_pressure __read_mostly = 100; |
39 | EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); | 39 | EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); |
40 | 40 | ||
41 | __cacheline_aligned_in_smp DEFINE_SPINLOCK(dcache_lock); | 41 | __cacheline_aligned_in_smp DEFINE_SPINLOCK(dcache_lock); |
@@ -43,7 +43,7 @@ static seqlock_t rename_lock __cacheline_aligned_in_smp = SEQLOCK_UNLOCKED; | |||
43 | 43 | ||
44 | EXPORT_SYMBOL(dcache_lock); | 44 | EXPORT_SYMBOL(dcache_lock); |
45 | 45 | ||
46 | static kmem_cache_t *dentry_cache; | 46 | static kmem_cache_t *dentry_cache __read_mostly; |
47 | 47 | ||
48 | #define DNAME_INLINE_LEN (sizeof(struct dentry)-offsetof(struct dentry,d_iname)) | 48 | #define DNAME_INLINE_LEN (sizeof(struct dentry)-offsetof(struct dentry,d_iname)) |
49 | 49 | ||
@@ -58,9 +58,9 @@ static kmem_cache_t *dentry_cache; | |||
58 | #define D_HASHBITS d_hash_shift | 58 | #define D_HASHBITS d_hash_shift |
59 | #define D_HASHMASK d_hash_mask | 59 | #define D_HASHMASK d_hash_mask |
60 | 60 | ||
61 | static unsigned int d_hash_mask; | 61 | static unsigned int d_hash_mask __read_mostly; |
62 | static unsigned int d_hash_shift; | 62 | static unsigned int d_hash_shift __read_mostly; |
63 | static struct hlist_head *dentry_hashtable; | 63 | static struct hlist_head *dentry_hashtable __read_mostly; |
64 | static LIST_HEAD(dentry_unused); | 64 | static LIST_HEAD(dentry_unused); |
65 | 65 | ||
66 | /* Statistics gathering. */ | 66 | /* Statistics gathering. */ |
@@ -1710,10 +1710,10 @@ static void __init dcache_init(unsigned long mempages) | |||
1710 | } | 1710 | } |
1711 | 1711 | ||
1712 | /* SLAB cache for __getname() consumers */ | 1712 | /* SLAB cache for __getname() consumers */ |
1713 | kmem_cache_t *names_cachep; | 1713 | kmem_cache_t *names_cachep __read_mostly; |
1714 | 1714 | ||
1715 | /* SLAB cache for file structures */ | 1715 | /* SLAB cache for file structures */ |
1716 | kmem_cache_t *filp_cachep; | 1716 | kmem_cache_t *filp_cachep __read_mostly; |
1717 | 1717 | ||
1718 | EXPORT_SYMBOL(d_genocide); | 1718 | EXPORT_SYMBOL(d_genocide); |
1719 | 1719 | ||