git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reverts to 2.6.12
[linux-2.6.git]
/
fs
/
filesystems.c
diff --git
a/fs/filesystems.c
b/fs/filesystems.c
index
af0fd49
..
9f10728
100644
(file)
--- a/
fs/filesystems.c
+++ b/
fs/filesystems.c
@@
-12,6
+12,7
@@
#include <linux/kmod.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kmod.h>
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/sched.h> /* for 'current' */
#include <asm/uaccess.h>
/*
#include <asm/uaccess.h>
/*
@@
-28,7
+29,7
@@
*/
static struct file_system_type *file_systems;
*/
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)
/* WARNING: This can be used only if we _already_ own a reference */
void get_filesystem(struct file_system_type *fs)