Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
02bd9799
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
02bd9799
编写于
5月 21, 2010
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch ecryptfs_get_locked_page() to struct inode *
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
bef5bc24
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
7 addition
and
15 deletion
+7
-15
fs/ecryptfs/ecryptfs_kernel.h
fs/ecryptfs/ecryptfs_kernel.h
+1
-1
fs/ecryptfs/mmap.c
fs/ecryptfs/mmap.c
+2
-10
fs/ecryptfs/read_write.c
fs/ecryptfs/read_write.c
+4
-4
未找到文件。
fs/ecryptfs/ecryptfs_kernel.h
浏览文件 @
02bd9799
...
...
@@ -739,7 +739,7 @@ int ecryptfs_read_lower_page_segment(struct page *page_for_ecryptfs,
pgoff_t
page_index
,
size_t
offset_in_page
,
size_t
size
,
struct
inode
*
ecryptfs_inode
);
struct
page
*
ecryptfs_get_locked_page
(
struct
file
*
fil
e
,
loff_t
index
);
struct
page
*
ecryptfs_get_locked_page
(
struct
inode
*
inod
e
,
loff_t
index
);
int
ecryptfs_exorcise_daemon
(
struct
ecryptfs_daemon
*
daemon
);
int
ecryptfs_find_daemon_by_euid
(
struct
ecryptfs_daemon
**
daemon
,
uid_t
euid
,
struct
user_namespace
*
user_ns
);
...
...
fs/ecryptfs/mmap.c
浏览文件 @
02bd9799
...
...
@@ -44,17 +44,9 @@
* Returns locked and up-to-date page (if ok), with increased
* refcnt.
*/
struct
page
*
ecryptfs_get_locked_page
(
struct
file
*
fil
e
,
loff_t
index
)
struct
page
*
ecryptfs_get_locked_page
(
struct
inode
*
inod
e
,
loff_t
index
)
{
struct
dentry
*
dentry
;
struct
inode
*
inode
;
struct
address_space
*
mapping
;
struct
page
*
page
;
dentry
=
file
->
f_path
.
dentry
;
inode
=
dentry
->
d_inode
;
mapping
=
inode
->
i_mapping
;
page
=
read_mapping_page
(
mapping
,
index
,
(
void
*
)
file
);
struct
page
*
page
=
read_mapping_page
(
inode
->
i_mapping
,
index
,
NULL
);
if
(
!
IS_ERR
(
page
))
lock_page
(
page
);
return
page
;
...
...
fs/ecryptfs/read_write.c
浏览文件 @
02bd9799
...
...
@@ -145,7 +145,7 @@ int ecryptfs_write(struct file *ecryptfs_file, char *data, loff_t offset,
if
(
num_bytes
>
total_remaining_zeros
)
num_bytes
=
total_remaining_zeros
;
}
ecryptfs_page
=
ecryptfs_get_locked_page
(
ecryptfs_
fil
e
,
ecryptfs_page
=
ecryptfs_get_locked_page
(
ecryptfs_
inod
e
,
ecryptfs_page_idx
);
if
(
IS_ERR
(
ecryptfs_page
))
{
rc
=
PTR_ERR
(
ecryptfs_page
);
...
...
@@ -302,10 +302,10 @@ int ecryptfs_read_lower_page_segment(struct page *page_for_ecryptfs,
int ecryptfs_read(char *data, loff_t offset, size_t size,
struct file *ecryptfs_file)
{
struct inode *ecryptfs_inode = ecryptfs_file->f_dentry->d_inode;
struct page *ecryptfs_page;
char *ecryptfs_page_virt;
loff_t ecryptfs_file_size =
i_size_read(ecryptfs_file->f_dentry->d_inode);
loff_t ecryptfs_file_size = i_size_read(ecryptfs_inode);
loff_t data_offset = 0;
loff_t pos;
int rc = 0;
...
...
@@ -327,7 +327,7 @@ int ecryptfs_read(char *data, loff_t offset, size_t size,
if (num_bytes > total_remaining_bytes)
num_bytes = total_remaining_bytes;
ecryptfs_page = ecryptfs_get_locked_page(ecryptfs_
fil
e,
ecryptfs_page = ecryptfs_get_locked_page(ecryptfs_
inod
e,
ecryptfs_page_idx);
if (IS_ERR(ecryptfs_page)) {
rc = PTR_ERR(ecryptfs_page);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录