diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-05-08 13:32:24 +0930 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-04-03 14:55:48 +0200 |
commit | 4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa (patch) | |
tree | 402f25bea016ed8e3b04e9c16ce99c82f00fd48b /fs/internal.h | |
parent | 08b4d03dc9a64ab1918356a64ae7cfc91f726f13 (diff) | |
download | kernel_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/internal.h')
-rw-r--r-- | fs/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/internal.h b/fs/internal.h index b29c46e..552ca03 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -77,7 +77,7 @@ extern void mnt_make_shortterm(struct vfsmount *); extern void __init mnt_init(void); -DECLARE_BRLOCK(vfsmount_lock); +extern struct lglock vfsmount_lock; /* |