diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-05-08 18:19:16 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-05-16 17:22:20 -0400 |
commit | f52111b1546943545e67573c4dde1c7613ca33d3 (patch) | |
tree | f8188dd12f7dc78f0f4c26702a5ba0ceea8199c7 /fs | |
parent | f26a3988917913b3d11b2bd741601a2c64ab9204 (diff) |
[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.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -275,3 +275,16 @@ void __init files_defer_init(void) | |||
275 | for_each_possible_cpu(i) | 275 | for_each_possible_cpu(i) |
276 | fdtable_defer_list_init(i); | 276 | fdtable_defer_list_init(i); |
277 | } | 277 | } |
278 | |||
279 | struct files_struct init_files = { | ||
280 | .count = ATOMIC_INIT(1), | ||
281 | .fdt = &init_files.fdtab, | ||
282 | .fdtab = { | ||
283 | .max_fds = NR_OPEN_DEFAULT, | ||
284 | .fd = &init_files.fd_array[0], | ||
285 | .close_on_exec = (fd_set *)&init_files.close_on_exec_init, | ||
286 | .open_fds = (fd_set *)&init_files.open_fds_init, | ||
287 | .rcu = RCU_HEAD_INIT, | ||
288 | }, | ||
289 | .file_lock = __SPIN_LOCK_UNLOCKED(init_task.file_lock), | ||
290 | }; | ||