aboutsummaryrefslogtreecommitdiffstats
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2012-05-08 13:32:24 +0930
committerZiyan <jaraidaniel@gmail.com>2016-04-03 14:55:48 +0200
commit4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa (patch)
tree402f25bea016ed8e3b04e9c16ce99c82f00fd48b /fs/file_table.c
parent08b4d03dc9a64ab1918356a64ae7cfc91f726f13 (diff)
downloadkernel_samsung_tuna-4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa.zip
kernel_samsung_tuna-4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa.tar.gz
kernel_samsung_tuna-4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa.tar.bz2
brlocks/lglocks: turn into functions
lglocks and brlocks are currently generated with some complicated macros in lglock.h. But there's no reason to not just use common utility functions and put all the data into a common data structure. Since there are at least two users it makes sense to share this code in a library. This is also easier maintainable than a macro forest. This will also make it later possible to dynamically allocate lglocks and also use them in modules (this would both still need some additional, but now straightforward, code) [akpm@linux-foundation.org: checkpatch fixes] Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> (cherry picked from commit eea62f831b8030b0eeea8314eed73b6132d1de26)
Diffstat (limited to 'fs/file_table.c')
-rw-r--r--fs/file_table.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 01e4c1e..f255e76 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -34,7 +34,6 @@ struct files_stat_struct files_stat = {
.max_files = NR_FILE
};
-DECLARE_LGLOCK(files_lglock);
DEFINE_LGLOCK(files_lglock);
/* SLAB cache for file structures */