diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2012-10-09 17:49:54 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-10 01:15:44 -0400 |
commit | 4b2c551f77f5a0c496e2125b1d883f4b26aabf2c (patch) | |
tree | 13b861ea27340133a057b1a9e90fa5be8b4d1283 /fs | |
parent | 466cab878ef98a0618734a1fa64a02e5fbf90867 (diff) |
lglock: add DEFINE_STATIC_LGLOCK()
When the lglock doesn't need to be exported we can use
DEFINE_STATIC_LGLOCK().
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/file_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index dac67923330..a72bf9ddd0d 100644 --- a/fs/file_table.c +++ b/fs/file_table.c | |||
@@ -36,7 +36,7 @@ struct files_stat_struct files_stat = { | |||
36 | .max_files = NR_FILE | 36 | .max_files = NR_FILE |
37 | }; | 37 | }; |
38 | 38 | ||
39 | DEFINE_LGLOCK(files_lglock); | 39 | DEFINE_STATIC_LGLOCK(files_lglock); |
40 | 40 | ||
41 | /* SLAB cache for file structures */ | 41 | /* SLAB cache for file structures */ |
42 | static struct kmem_cache *filp_cachep __read_mostly; | 42 | static struct kmem_cache *filp_cachep __read_mostly; |