diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2005-01-20 16:22:05 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-20 16:22:05 -0800 |
| commit | 40ecdb7008041e230f6dad1bbe766f761855daf7 (patch) | |
| tree | fc04cf7834c1a9623aa037b02914fdf8303513fa /fs/filesystems.c | |
| parent | 882afee1bf24744cb7843b48bd3983987c197eab (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/filesystems.c')
| -rw-r--r-- | fs/filesystems.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/filesystems.c b/fs/filesystems.c index af0fd4973880..44082bfdfec9 100644 --- a/fs/filesystems.c +++ b/fs/filesystems.c @@ -28,7 +28,7 @@ */ static struct file_system_type *file_systems; -static rwlock_t file_systems_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(file_systems_lock); /* WARNING: This can be used only if we _already_ own a reference */ void get_filesystem(struct file_system_type *fs) |
