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 939584648504..aaca5e7970bc 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | /* #define DCACHE_DEBUG 1 */ | 37 | /* #define DCACHE_DEBUG 1 */ |
38 | 38 | ||
39 | int sysctl_vfs_cache_pressure = 100; | 39 | int sysctl_vfs_cache_pressure __read_mostly = 100; |
40 | EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); | 40 | EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); |
41 | 41 | ||
42 | __cacheline_aligned_in_smp DEFINE_SPINLOCK(dcache_lock); | 42 | __cacheline_aligned_in_smp DEFINE_SPINLOCK(dcache_lock); |
@@ -44,7 +44,7 @@ static seqlock_t rename_lock __cacheline_aligned_in_smp = SEQLOCK_UNLOCKED; | |||
44 | 44 | ||
45 | EXPORT_SYMBOL(dcache_lock); | 45 | EXPORT_SYMBOL(dcache_lock); |
46 | 46 | ||
47 | static kmem_cache_t *dentry_cache; | 47 | static kmem_cache_t *dentry_cache __read_mostly; |
48 | 48 | ||
49 | #define DNAME_INLINE_LEN (sizeof(struct dentry)-offsetof(struct dentry,d_iname)) | 49 | #define DNAME_INLINE_LEN (sizeof(struct dentry)-offsetof(struct dentry,d_iname)) |
50 | 50 | ||
@@ -59,9 +59,9 @@ static kmem_cache_t *dentry_cache; | |||
59 | #define D_HASHBITS d_hash_shift | 59 | #define D_HASHBITS d_hash_shift |
60 | #define D_HASHMASK d_hash_mask | 60 | #define D_HASHMASK d_hash_mask |
61 | 61 | ||
62 | static unsigned int d_hash_mask; | 62 | static unsigned int d_hash_mask __read_mostly; |
63 | static unsigned int d_hash_shift; | 63 | static unsigned int d_hash_shift __read_mostly; |
64 | static struct hlist_head *dentry_hashtable; | 64 | static struct hlist_head *dentry_hashtable __read_mostly; |
65 | static LIST_HEAD(dentry_unused); | 65 | static LIST_HEAD(dentry_unused); |
66 | 66 | ||
67 | /* Statistics gathering. */ | 67 | /* Statistics gathering. */ |
@@ -1719,10 +1719,10 @@ static void __init dcache_init(unsigned long mempages) | |||
1719 | } | 1719 | } |
1720 | 1720 | ||
1721 | /* SLAB cache for __getname() consumers */ | 1721 | /* SLAB cache for __getname() consumers */ |
1722 | kmem_cache_t *names_cachep; | 1722 | kmem_cache_t *names_cachep __read_mostly; |
1723 | 1723 | ||
1724 | /* SLAB cache for file structures */ | 1724 | /* SLAB cache for file structures */ |
1725 | kmem_cache_t *filp_cachep; | 1725 | kmem_cache_t *filp_cachep __read_mostly; |
1726 | 1726 | ||
1727 | EXPORT_SYMBOL(d_genocide); | 1727 | EXPORT_SYMBOL(d_genocide); |
1728 | 1728 | ||