Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
ccad2365
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ccad2365
编写于
2月 11, 2014
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kill generic_file_buffered_write()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
58bfab39
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1 addition
and
24 deletion
+1
-24
include/linux/fs.h
include/linux/fs.h
+0
-2
mm/filemap.c
mm/filemap.c
+1
-22
未找到文件。
include/linux/fs.h
浏览文件 @
ccad2365
...
...
@@ -2398,8 +2398,6 @@ extern ssize_t generic_file_aio_write(struct kiocb *, const struct iovec *, unsi
extern
ssize_t
generic_file_direct_write
(
struct
kiocb
*
,
const
struct
iovec
*
,
unsigned
long
*
,
loff_t
,
size_t
,
size_t
);
extern
ssize_t
generic_perform_write
(
struct
file
*
,
struct
iov_iter
*
,
loff_t
);
extern
ssize_t
generic_file_buffered_write
(
struct
kiocb
*
,
const
struct
iovec
*
,
unsigned
long
,
loff_t
,
size_t
,
ssize_t
);
extern
ssize_t
do_sync_read
(
struct
file
*
filp
,
char
__user
*
buf
,
size_t
len
,
loff_t
*
ppos
);
extern
ssize_t
do_sync_write
(
struct
file
*
filp
,
const
char
__user
*
buf
,
size_t
len
,
loff_t
*
ppos
);
extern
int
generic_segment_checks
(
const
struct
iovec
*
iov
,
...
...
mm/filemap.c
浏览文件 @
ccad2365
...
...
@@ -76,7 +76,7 @@
* ->mmap_sem
* ->lock_page (access_process_vm)
*
* ->i_mutex (generic_
file_buffered
_write)
* ->i_mutex (generic_
perform
_write)
* ->mmap_sem (fault_in_pages_readable->do_page_fault)
*
* bdi->wb.list_lock
...
...
@@ -2182,27 +2182,6 @@ ssize_t generic_perform_write(struct file *file,
}
EXPORT_SYMBOL
(
generic_perform_write
);
ssize_t
generic_file_buffered_write
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
,
size_t
count
,
ssize_t
written
)
{
struct
file
*
file
=
iocb
->
ki_filp
;
ssize_t
status
;
struct
iov_iter
i
;
iov_iter_init
(
&
i
,
iov
,
nr_segs
,
count
,
written
);
status
=
generic_perform_write
(
file
,
&
i
,
pos
);
if
(
likely
(
status
>=
0
))
{
written
+=
status
;
iocb
->
ki_pos
=
pos
+
status
;
}
return
written
?
written
:
status
;
}
EXPORT_SYMBOL
(
generic_file_buffered_write
);
/**
* __generic_file_aio_write - write data to a file
* @iocb: IO state structure (file, offset, etc.)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录