Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c186afb4
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看板
提交
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录