Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
f0d3b3de
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
154
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f0d3b3de
编写于
9月 05, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
constify dcache.c inlined helpers where possible
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
46ea1562
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
6 deletion
+6
-6
include/linux/dcache.h
include/linux/dcache.h
+6
-6
未找到文件。
include/linux/dcache.h
浏览文件 @
f0d3b3de
...
...
@@ -212,7 +212,7 @@ struct dentry_operations {
extern
seqlock_t
rename_lock
;
static
inline
int
dname_external
(
struct
dentry
*
dentry
)
static
inline
int
dname_external
(
const
struct
dentry
*
dentry
)
{
return
dentry
->
d_name
.
name
!=
dentry
->
d_iname
;
}
...
...
@@ -358,17 +358,17 @@ extern struct dentry *dget_parent(struct dentry *dentry);
* Returns true if the dentry passed is not currently hashed.
*/
static
inline
int
d_unhashed
(
struct
dentry
*
dentry
)
static
inline
int
d_unhashed
(
const
struct
dentry
*
dentry
)
{
return
hlist_bl_unhashed
(
&
dentry
->
d_hash
);
}
static
inline
int
d_unlinked
(
struct
dentry
*
dentry
)
static
inline
int
d_unlinked
(
const
struct
dentry
*
dentry
)
{
return
d_unhashed
(
dentry
)
&&
!
IS_ROOT
(
dentry
);
}
static
inline
int
cant_mount
(
struct
dentry
*
dentry
)
static
inline
int
cant_mount
(
const
struct
dentry
*
dentry
)
{
return
(
dentry
->
d_flags
&
DCACHE_CANT_MOUNT
);
}
...
...
@@ -382,12 +382,12 @@ static inline void dont_mount(struct dentry *dentry)
extern
void
dput
(
struct
dentry
*
);
static
inline
bool
d_managed
(
struct
dentry
*
dentry
)
static
inline
bool
d_managed
(
const
struct
dentry
*
dentry
)
{
return
dentry
->
d_flags
&
DCACHE_MANAGED_DENTRY
;
}
static
inline
bool
d_mountpoint
(
struct
dentry
*
dentry
)
static
inline
bool
d_mountpoint
(
const
struct
dentry
*
dentry
)
{
return
dentry
->
d_flags
&
DCACHE_MOUNTED
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录