X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Ffilesystems.c;h=44082bfdfec960037be53f9cff8a412711bf6e1b;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=276be78d5f32995233fb9f011da0af8ef5ff361a;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/filesystems.c b/fs/filesystems.c index 276be78d5..44082bfdf 100644 --- a/fs/filesystems.c +++ b/fs/filesystems.c @@ -6,6 +6,7 @@ * table of configured filesystems */ +#include #include #include #include @@ -27,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)