Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
f52111b1
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f52111b1
编写于
5月 08, 2008
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] take init_files to fs/file.c
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
f26a3988
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
14 addition
and
45 deletion
+14
-45
arch/alpha/kernel/init_task.c
arch/alpha/kernel/init_task.c
+0
-1
arch/arm/kernel/init_task.c
arch/arm/kernel/init_task.c
+0
-1
arch/avr32/kernel/init_task.c
arch/avr32/kernel/init_task.c
+0
-1
arch/blackfin/kernel/init_task.c
arch/blackfin/kernel/init_task.c
+0
-1
arch/cris/kernel/process.c
arch/cris/kernel/process.c
+0
-1
arch/frv/kernel/init_task.c
arch/frv/kernel/init_task.c
+0
-1
arch/h8300/kernel/init_task.c
arch/h8300/kernel/init_task.c
+0
-1
arch/ia64/kernel/init_task.c
arch/ia64/kernel/init_task.c
+0
-1
arch/m32r/kernel/init_task.c
arch/m32r/kernel/init_task.c
+0
-1
arch/m68k/kernel/process.c
arch/m68k/kernel/process.c
+0
-1
arch/m68knommu/kernel/init_task.c
arch/m68knommu/kernel/init_task.c
+0
-1
arch/mips/kernel/init_task.c
arch/mips/kernel/init_task.c
+0
-1
arch/mn10300/kernel/init_task.c
arch/mn10300/kernel/init_task.c
+0
-1
arch/parisc/kernel/init_task.c
arch/parisc/kernel/init_task.c
+0
-1
arch/powerpc/kernel/init_task.c
arch/powerpc/kernel/init_task.c
+0
-1
arch/s390/kernel/init_task.c
arch/s390/kernel/init_task.c
+0
-1
arch/sh/kernel/init_task.c
arch/sh/kernel/init_task.c
+0
-1
arch/sparc/kernel/init_task.c
arch/sparc/kernel/init_task.c
+0
-1
arch/sparc64/kernel/init_task.c
arch/sparc64/kernel/init_task.c
+0
-1
arch/um/kernel/init_task.c
arch/um/kernel/init_task.c
+0
-1
arch/v850/kernel/init_task.c
arch/v850/kernel/init_task.c
+0
-1
arch/x86/kernel/init_task.c
arch/x86/kernel/init_task.c
+0
-1
arch/xtensa/kernel/init_task.c
arch/xtensa/kernel/init_task.c
+0
-1
fs/file.c
fs/file.c
+13
-0
include/linux/init_task.h
include/linux/init_task.h
+1
-22
未找到文件。
arch/alpha/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -9,7 +9,6 @@
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/arm/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -13,7 +13,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/avr32/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -14,7 +14,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/blackfin/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -34,7 +34,6 @@
#include <linux/fs.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
...
...
arch/cris/kernel/process.c
浏览文件 @
f52111b1
...
...
@@ -38,7 +38,6 @@
*/
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/frv/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -11,7 +11,6 @@
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/h8300/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -13,7 +13,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/ia64/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -18,7 +18,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/m32r/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -12,7 +12,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/m68k/kernel/process.c
浏览文件 @
f52111b1
...
...
@@ -41,7 +41,6 @@
* setup.
*/
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/m68knommu/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -13,7 +13,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/mips/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -10,7 +10,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/mn10300/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -19,7 +19,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/parisc/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -35,7 +35,6 @@
#include <asm/pgalloc.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/powerpc/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -8,7 +8,6 @@
#include <asm/uaccess.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/s390/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -17,7 +17,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/sh/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -8,7 +8,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
pt_regs
fake_swapper_regs
;
...
...
arch/sparc/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -9,7 +9,6 @@
#include <asm/uaccess.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/sparc64/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -10,7 +10,6 @@
#include <asm/processor.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/um/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -12,7 +12,6 @@
static
struct
fs_struct
init_fs
=
INIT_FS
;
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
EXPORT_SYMBOL
(
init_mm
);
...
...
arch/v850/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -21,7 +21,6 @@
#include <asm/pgtable.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/x86/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -11,7 +11,6 @@
#include <asm/desc.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
arch/xtensa/kernel/init_task.c
浏览文件 @
f52111b1
...
...
@@ -22,7 +22,6 @@
#include <asm/uaccess.h>
static
struct
fs_struct
init_fs
=
INIT_FS
;
static
struct
files_struct
init_files
=
INIT_FILES
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
(
init_signals
);
static
struct
sighand_struct
init_sighand
=
INIT_SIGHAND
(
init_sighand
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
...
...
fs/file.c
浏览文件 @
f52111b1
...
...
@@ -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
),
};
include/linux/init_task.h
浏览文件 @
f52111b1
#ifndef _LINUX__INIT_TASK_H
#define _LINUX__INIT_TASK_H
#include <linux/fdtable.h>
#include <linux/rcupdate.h>
#include <linux/irqflags.h>
#include <linux/utsname.h>
...
...
@@ -12,27 +11,7 @@
#include <linux/securebits.h>
#include <net/net_namespace.h>
#define INIT_FDTABLE \
{ \
.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, \
.next = NULL, \
}
#define INIT_FILES \
{ \
.count = ATOMIC_INIT(1), \
.fdt = &init_files.fdtab, \
.fdtab = INIT_FDTABLE, \
.file_lock = __SPIN_LOCK_UNLOCKED(init_task.file_lock), \
.next_fd = 0, \
.close_on_exec_init = { { 0, } }, \
.open_fds_init = { { 0, } }, \
.fd_array = { NULL, } \
}
extern
struct
files_struct
init_files
;
#define INIT_KIOCTX(name, which_mm) \
{ \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录