diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-05-08 00:02:24 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-29 23:28:41 -0400 |
commit | eea62f831b8030b0eeea8314eed73b6132d1de26 (patch) | |
tree | 7fd58cf63e62484b8d3a0c8c5d2e9193b85945a4 /fs/internal.h | |
parent | 9dd6fa03ab31bb57cee4623a689d058d222fbe68 (diff) |
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>
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 9962c59ba280..8040af489c78 100644 --- a/fs/internal.h +++ b/fs/internal.h | |||
@@ -56,7 +56,7 @@ extern int sb_prepare_remount_readonly(struct super_block *); | |||
56 | 56 | ||
57 | extern void __init mnt_init(void); | 57 | extern void __init mnt_init(void); |
58 | 58 | ||
59 | DECLARE_BRLOCK(vfsmount_lock); | 59 | extern struct lglock vfsmount_lock; |
60 | 60 | ||
61 | 61 | ||
62 | /* | 62 | /* |