Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
c186afb4
K
Kernel
项目概览
openeuler
/
Kernel
12 个月 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c186afb4
编写于
2月 02, 2014
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch ->is_partially_uptodate() to saner arguments
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
fbb32750
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
9 addition
and
9 deletion
+9
-9
Documentation/filesystems/Locking
Documentation/filesystems/Locking
+1
-1
Documentation/filesystems/vfs.txt
Documentation/filesystems/vfs.txt
+1
-1
fs/buffer.c
fs/buffer.c
+3
-3
include/linux/buffer_head.h
include/linux/buffer_head.h
+2
-2
include/linux/fs.h
include/linux/fs.h
+1
-1
mm/filemap.c
mm/filemap.c
+1
-1
未找到文件。
Documentation/filesystems/Locking
浏览文件 @
c186afb4
...
...
@@ -198,7 +198,7 @@ prototypes:
unsigned long *);
int (*migratepage)(struct address_space *, struct page *, struct page *);
int (*launder_page)(struct page *);
int (*is_partially_uptodate)(struct page *,
read_descriptor_t *
, unsigned long);
int (*is_partially_uptodate)(struct page *,
unsigned long
, unsigned long);
int (*error_remove_page)(struct address_space *, struct page *);
int (*swap_activate)(struct file *);
int (*swap_deactivate)(struct file *);
...
...
Documentation/filesystems/vfs.txt
浏览文件 @
c186afb4
...
...
@@ -580,7 +580,7 @@ struct address_space_operations {
/* migrate the contents of a page to the specified target */
int (*migratepage) (struct page *, struct page *);
int (*launder_page) (struct page *);
int (*is_partially_uptodate) (struct page *,
read_descriptor_t *
,
int (*is_partially_uptodate) (struct page *,
unsigned long
,
unsigned long);
void (*is_dirty_writeback) (struct page *, bool *, bool *);
int (*error_remove_page) (struct mapping *mapping, struct page *page);
...
...
fs/buffer.c
浏览文件 @
c186afb4
...
...
@@ -2114,8 +2114,8 @@ EXPORT_SYMBOL(generic_write_end);
* Returns true if all buffers which correspond to a file portion
* we want to read are uptodate.
*/
int
block_is_partially_uptodate
(
struct
page
*
page
,
read_descriptor_t
*
desc
,
unsigned
long
from
)
int
block_is_partially_uptodate
(
struct
page
*
page
,
unsigned
long
from
,
unsigned
long
count
)
{
unsigned
block_start
,
block_end
,
blocksize
;
unsigned
to
;
...
...
@@ -2127,7 +2127,7 @@ int block_is_partially_uptodate(struct page *page, read_descriptor_t *desc,
head
=
page_buffers
(
page
);
blocksize
=
head
->
b_size
;
to
=
min_t
(
unsigned
,
PAGE_CACHE_SIZE
-
from
,
desc
->
count
);
to
=
min_t
(
unsigned
,
PAGE_CACHE_SIZE
-
from
,
count
);
to
=
from
+
to
;
if
(
from
<
blocksize
&&
to
>
PAGE_CACHE_SIZE
-
blocksize
)
return
0
;
...
...
include/linux/buffer_head.h
浏览文件 @
c186afb4
...
...
@@ -210,8 +210,8 @@ int block_write_full_page(struct page *page, get_block_t *get_block,
int
block_write_full_page_endio
(
struct
page
*
page
,
get_block_t
*
get_block
,
struct
writeback_control
*
wbc
,
bh_end_io_t
*
handler
);
int
block_read_full_page
(
struct
page
*
,
get_block_t
*
);
int
block_is_partially_uptodate
(
struct
page
*
page
,
read_descriptor_t
*
desc
,
unsigned
long
from
);
int
block_is_partially_uptodate
(
struct
page
*
page
,
unsigned
long
from
,
unsigned
long
count
);
int
block_write_begin
(
struct
address_space
*
mapping
,
loff_t
pos
,
unsigned
len
,
unsigned
flags
,
struct
page
**
pagep
,
get_block_t
*
get_block
);
int
__block_write_begin
(
struct
page
*
page
,
loff_t
pos
,
unsigned
len
,
...
...
include/linux/fs.h
浏览文件 @
c186afb4
...
...
@@ -385,7 +385,7 @@ struct address_space_operations {
int
(
*
migratepage
)
(
struct
address_space
*
,
struct
page
*
,
struct
page
*
,
enum
migrate_mode
);
int
(
*
launder_page
)
(
struct
page
*
);
int
(
*
is_partially_uptodate
)
(
struct
page
*
,
read_descriptor_t
*
,
int
(
*
is_partially_uptodate
)
(
struct
page
*
,
unsigned
long
,
unsigned
long
);
void
(
*
is_dirty_writeback
)
(
struct
page
*
,
bool
*
,
bool
*
);
int
(
*
error_remove_page
)(
struct
address_space
*
,
struct
page
*
);
...
...
mm/filemap.c
浏览文件 @
c186afb4
...
...
@@ -1148,7 +1148,7 @@ static void do_generic_file_read(struct file *filp, loff_t *ppos,
if
(
!
page
->
mapping
)
goto
page_not_up_to_date_locked
;
if
(
!
mapping
->
a_ops
->
is_partially_uptodate
(
page
,
desc
,
offse
t
))
offset
,
desc
->
coun
t
))
goto
page_not_up_to_date_locked
;
unlock_page
(
page
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录