Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
6abd2322
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
6abd2322
编写于
4月 04, 2014
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bury generic_file_aio_{read,write}
no callers left Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
b42b15fd
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
37 deletion
+8
-37
include/linux/fs.h
include/linux/fs.h
+0
-2
mm/filemap.c
mm/filemap.c
+8
-35
未找到文件。
include/linux/fs.h
浏览文件 @
6abd2322
...
...
@@ -2411,10 +2411,8 @@ extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
extern
int
generic_file_remap_pages
(
struct
vm_area_struct
*
,
unsigned
long
addr
,
unsigned
long
size
,
pgoff_t
pgoff
);
int
generic_write_checks
(
struct
file
*
file
,
loff_t
*
pos
,
size_t
*
count
,
int
isblk
);
extern
ssize_t
generic_file_aio_read
(
struct
kiocb
*
,
const
struct
iovec
*
,
unsigned
long
,
loff_t
);
extern
ssize_t
generic_file_read_iter
(
struct
kiocb
*
,
struct
iov_iter
*
);
extern
ssize_t
__generic_file_write_iter
(
struct
kiocb
*
,
struct
iov_iter
*
);
extern
ssize_t
generic_file_aio_write
(
struct
kiocb
*
,
const
struct
iovec
*
,
unsigned
long
,
loff_t
);
extern
ssize_t
generic_file_write_iter
(
struct
kiocb
*
,
struct
iov_iter
*
);
extern
ssize_t
generic_file_direct_write
(
struct
kiocb
*
,
struct
iov_iter
*
,
loff_t
);
extern
ssize_t
generic_perform_write
(
struct
file
*
,
struct
iov_iter
*
,
loff_t
);
...
...
mm/filemap.c
浏览文件 @
6abd2322
...
...
@@ -1663,6 +1663,14 @@ static ssize_t do_generic_file_read(struct file *filp, loff_t *ppos,
return
written
?
written
:
error
;
}
/**
* generic_file_read_iter - generic filesystem read routine
* @iocb: kernel I/O control block
* @iter: destination for the data read
*
* This is the "read_iter()" routine for all filesystems
* that can use the page cache directly.
*/
ssize_t
generic_file_read_iter
(
struct
kiocb
*
iocb
,
struct
iov_iter
*
iter
)
{
...
...
@@ -1713,28 +1721,6 @@ generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
}
EXPORT_SYMBOL
(
generic_file_read_iter
);
/**
* generic_file_aio_read - generic filesystem read routine
* @iocb: kernel I/O control block
* @iov: io vector request
* @nr_segs: number of segments in the iovec
* @pos: current file position
*
* This is the "read()" routine for all filesystems
* that can use the page cache directly.
*/
ssize_t
generic_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
size_t
count
=
iov_length
(
iov
,
nr_segs
);
struct
iov_iter
i
;
iov_iter_init
(
&
i
,
READ
,
iov
,
nr_segs
,
count
);
return
generic_file_read_iter
(
iocb
,
&
i
);
}
EXPORT_SYMBOL
(
generic_file_aio_read
);
#ifdef CONFIG_MMU
/**
* page_cache_read - adds requested page to the page cache if not already there
...
...
@@ -2675,19 +2661,6 @@ ssize_t generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
}
EXPORT_SYMBOL
(
generic_file_write_iter
);
ssize_t
generic_file_aio_write
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
size_t
count
=
iov_length
(
iov
,
nr_segs
);
struct
iov_iter
from
;
BUG_ON
(
iocb
->
ki_pos
!=
pos
);
iov_iter_init
(
&
from
,
WRITE
,
iov
,
nr_segs
,
count
);
return
generic_file_write_iter
(
iocb
,
&
from
);
}
EXPORT_SYMBOL
(
generic_file_aio_write
);
/**
* try_to_release_page() - release old fs-specific metadata on a page
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录