summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-05-09 00:19:16 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2008-05-16 23:22:20 +0200
commitf52111b1546943545e67573c4dde1c7613ca33d3 (patch)
treef8188dd12f7dc78f0f4c26702a5ba0ceea8199c7 /fs
parentMerge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/... (diff)
downloadlinux-f52111b1546943545e67573c4dde1c7613ca33d3.tar.xz
linux-f52111b1546943545e67573c4dde1c7613ca33d3.zip
[PATCH] take init_files to fs/file.c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/file.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/file.c b/fs/file.c
index 4c6f0ea12c41..754cd05b06af 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -275,3 +275,16 @@ void __init files_defer_init(void)
for_each_possible_cpu(i)
fdtable_defer_list_init(i);
}
+
+struct files_struct init_files = {
+ .count = ATOMIC_INIT(1),
+ .fdt = &init_files.fdtab,
+ .fdtab = {
+ .max_fds = NR_OPEN_DEFAULT,
+ .fd = &init_files.fd_array[0],
+ .close_on_exec = (fd_set *)&init_files.close_on_exec_init,
+ .open_fds = (fd_set *)&init_files.open_fds_init,
+ .rcu = RCU_HEAD_INIT,
+ },
+ .file_lock = __SPIN_LOCK_UNLOCKED(init_task.file_lock),
+};