make INIT_FS use the __RW_LOCK_UNLOCKED initialization
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 10 Dec 2008 23:37:28 +0000 (18:37 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 31 Dec 2008 23:07:42 +0000 (18:07 -0500)
[AV: rediffed on top of unification of init_fs]
Initialization of init_fs still uses the deprecated RW_LOCK_UNLOCKED macro.
This patch updates it to use the __RW_LOCK_UNLOCKED(lock) macro.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c

index e203691..dd5c9f0 100644 (file)
@@ -2897,6 +2897,6 @@ EXPORT_SYMBOL(generic_readlink);
 /* to be mentioned only in INIT_TASK */
 struct fs_struct init_fs = {
        .count          = ATOMIC_INIT(1),
-       .lock           = RW_LOCK_UNLOCKED,
+       .lock           = __RW_LOCK_UNLOCKED(init_fs.lock),
        .umask          = 0022,
 };