mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] take init_files to fs/file.c
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
f26a398891
commit
f52111b154
25 changed files with 14 additions and 45 deletions
13
fs/file.c
13
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),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue