Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3609404f
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看板
提交
3609404f
编写于
7月 06, 2016
作者:
Y
Yan, Zheng
提交者:
Ilya Dryomov
7月 28, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ceph: update types of some local varibles
Signed-off-by:
N
Yan, Zheng
<
zyan@redhat.com
>
上级
3469ed0d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
11 deletion
+12
-11
fs/ceph/caps.c
fs/ceph/caps.c
+12
-11
未找到文件。
fs/ceph/caps.c
浏览文件 @
3609404f
...
...
@@ -993,7 +993,7 @@ static int send_cap_msg(struct ceph_mds_session *session,
u32
seq
,
u64
flush_tid
,
u64
oldest_flush_tid
,
u32
issue_seq
,
u32
mseq
,
u64
size
,
u64
max_size
,
struct
timespec
*
mtime
,
struct
timespec
*
atime
,
struct
timespec
*
ctime
,
u
64
time_warp_seq
,
struct
timespec
*
ctime
,
u
32
time_warp_seq
,
kuid_t
uid
,
kgid_t
gid
,
umode_t
mode
,
u64
xattr_version
,
struct
ceph_buffer
*
xattrs_buf
,
...
...
@@ -1118,8 +1118,8 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
struct
inode
*
inode
=
&
ci
->
vfs_inode
;
u64
cap_id
=
cap
->
cap_id
;
int
held
,
revoking
,
dropping
,
keep
;
u64
seq
,
issue_seq
,
mseq
,
time_warp_seq
,
follows
;
u
64
size
,
max_size
;
u64
follows
,
size
,
max_size
;
u
32
seq
,
issue_seq
,
mseq
,
time_warp_seq
;
struct
timespec
mtime
,
atime
,
ctime
;
int
wake
=
0
;
umode_t
mode
;
...
...
@@ -1585,10 +1585,11 @@ void ceph_check_caps(struct ceph_inode_info *ci, int flags,
int
mds
=
-
1
;
/* keep track of how far we've gone through i_caps list
to avoid an infinite loop on retry */
struct
rb_node
*
p
;
int
tried_invalidate
=
0
;
int
delayed
=
0
,
sent
=
0
,
force_requeue
=
0
,
num
;
int
queue_invalidate
=
0
;
int
is_delayed
=
flags
&
CHECK_CAPS_NODELAY
;
int
delayed
=
0
,
sent
=
0
,
num
;
bool
is_delayed
=
flags
&
CHECK_CAPS_NODELAY
;
bool
queue_invalidate
=
false
;
bool
force_requeue
=
false
;
bool
tried_invalidate
=
false
;
/* if we are unmounting, flush any unused caps immediately. */
if
(
mdsc
->
stopping
)
...
...
@@ -1668,17 +1669,17 @@ void ceph_check_caps(struct ceph_inode_info *ci, int flags,
if
(
revoking
&
(
CEPH_CAP_FILE_CACHE
|
CEPH_CAP_FILE_LAZYIO
))
{
dout
(
"check_caps queuing invalidate
\n
"
);
queue_invalidate
=
1
;
queue_invalidate
=
true
;
ci
->
i_rdcache_revoking
=
ci
->
i_rdcache_gen
;
}
else
{
dout
(
"check_caps failed to invalidate pages
\n
"
);
/* we failed to invalidate pages. check these
caps again later. */
force_requeue
=
1
;
force_requeue
=
true
;
__cap_set_timeouts
(
mdsc
,
ci
);
}
}
tried_invalidate
=
1
;
tried_invalidate
=
true
;
goto
retry_locked
;
}
...
...
@@ -1824,7 +1825,7 @@ void ceph_check_caps(struct ceph_inode_info *ci, int flags,
* otherwise cancel.
*/
if
(
delayed
&&
is_delayed
)
force_requeue
=
1
;
/* __send_cap delayed release; requeue */
force_requeue
=
true
;
/* __send_cap delayed release; requeue */
if
(
!
delayed
&&
!
is_delayed
)
__cap_delay_cancel
(
mdsc
,
ci
);
else
if
(
!
is_delayed
||
force_requeue
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录