aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-12-26 00:35:37 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2008-12-31 18:07:42 -0500
commit18d8fda7c3c9439be04d7ea2e82da2513b121acb (patch)
tree6b16a687205c7c027c719fd2249551f58f966618 /fs
parentcb23beb55100171646e69e248fb45f10db6e99a4 (diff)
take init_fs to saner place
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 3f88e043d45..e203691b9d1 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2893,3 +2893,10 @@ EXPORT_SYMBOL(vfs_symlink);
EXPORT_SYMBOL(vfs_unlink);
EXPORT_SYMBOL(dentry_unhash);
EXPORT_SYMBOL(generic_readlink);
+
+/* to be mentioned only in INIT_TASK */
+struct fs_struct init_fs = {
+ .count = ATOMIC_INIT(1),
+ .lock = RW_LOCK_UNLOCKED,
+ .umask = 0022,
+};