From: Steven Rostedt Date: Wed, 10 Dec 2008 23:37:28 +0000 (-0500) Subject: make INIT_FS use the __RW_LOCK_UNLOCKED initialization X-Git-Tag: v2.6.29-rc1~549^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1239f26c05899f1f3c541b41e719c59d58038786;p=linux-2.6-omap-h63xx.git make INIT_FS use the __RW_LOCK_UNLOCKED initialization [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 Signed-off-by: Al Viro --- diff --git a/fs/namei.c b/fs/namei.c index e203691b9d1..dd5c9f0bf82 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -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, };