summaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2005-01-20 16:22:05 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:22:05 -0800
commit40ecdb7008041e230f6dad1bbe766f761855daf7 (patch)
treefc04cf7834c1a9623aa037b02914fdf8303513fa /fs/exec.c
parent882afee1bf24744cb7843b48bd3983987c197eab (diff)
[PATCH] Lock initializer cleanup: Filesystems
Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 115e6f15b30a..ee58e91a9d7f 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -61,7 +61,7 @@ char core_pattern[65] = "core";
/* The maximal length of core_pattern is also specified in sysctl.c */
static struct linux_binfmt *formats;
-static rwlock_t binfmt_lock = RW_LOCK_UNLOCKED;
+static DEFINE_RWLOCK(binfmt_lock);
int register_binfmt(struct linux_binfmt * fmt)
{