Skip to content

Commit

Permalink
make INIT_FS use the __RW_LOCK_UNLOCKED initialization
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
rostedt authored and Al Viro committed Dec 31, 2008
1 parent 18d8fda commit 1239f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 1239f26

Please sign in to comment.