Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
a569c711
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
a569c711
编写于
7月 23, 2008
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] don't pass nameidata to gfs2_lookupi()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
2ad94ae6
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
8 deletion
+8
-8
fs/gfs2/inode.c
fs/gfs2/inode.c
+3
-3
fs/gfs2/inode.h
fs/gfs2/inode.h
+1
-1
fs/gfs2/ops_export.c
fs/gfs2/ops_export.c
+1
-1
fs/gfs2/ops_inode.c
fs/gfs2/ops_inode.c
+2
-2
fs/gfs2/super.c
fs/gfs2/super.c
+1
-1
未找到文件。
fs/gfs2/inode.c
浏览文件 @
a569c711
...
...
@@ -448,7 +448,7 @@ struct inode *gfs2_lookup_simple(struct inode *dip, const char *name)
struct
qstr
qstr
;
struct
inode
*
inode
;
gfs2_str2qstr
(
&
qstr
,
name
);
inode
=
gfs2_lookupi
(
dip
,
&
qstr
,
1
,
NULL
);
inode
=
gfs2_lookupi
(
dip
,
&
qstr
,
1
);
/* gfs2_lookupi has inconsistent callers: vfs
* related routines expect NULL for no entry found,
* gfs2_lookup_simple callers expect ENOENT
...
...
@@ -477,7 +477,7 @@ struct inode *gfs2_lookup_simple(struct inode *dip, const char *name)
*/
struct
inode
*
gfs2_lookupi
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
int
is_root
,
struct
nameidata
*
nd
)
int
is_root
)
{
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
gfs2_inode
*
dip
=
GFS2_I
(
dir
);
...
...
@@ -1173,7 +1173,7 @@ int gfs2_ok_to_move(struct gfs2_inode *this, struct gfs2_inode *to)
break
;
}
tmp
=
gfs2_lookupi
(
dir
,
&
dotdot
,
1
,
NULL
);
tmp
=
gfs2_lookupi
(
dir
,
&
dotdot
,
1
);
if
(
IS_ERR
(
tmp
))
{
error
=
PTR_ERR
(
tmp
);
break
;
...
...
fs/gfs2/inode.h
浏览文件 @
a569c711
...
...
@@ -83,7 +83,7 @@ int gfs2_inode_refresh(struct gfs2_inode *ip);
int
gfs2_dinode_dealloc
(
struct
gfs2_inode
*
inode
);
int
gfs2_change_nlink
(
struct
gfs2_inode
*
ip
,
int
diff
);
struct
inode
*
gfs2_lookupi
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
int
is_root
,
struct
nameidata
*
nd
);
int
is_root
);
struct
inode
*
gfs2_createi
(
struct
gfs2_holder
*
ghs
,
const
struct
qstr
*
name
,
unsigned
int
mode
,
dev_t
dev
);
int
gfs2_rmdiri
(
struct
gfs2_inode
*
dip
,
const
struct
qstr
*
name
,
...
...
fs/gfs2/ops_export.c
浏览文件 @
a569c711
...
...
@@ -134,7 +134,7 @@ static struct dentry *gfs2_get_parent(struct dentry *child)
struct
dentry
*
dentry
;
gfs2_str2qstr
(
&
dotdot
,
".."
);
inode
=
gfs2_lookupi
(
child
->
d_inode
,
&
dotdot
,
1
,
NULL
);
inode
=
gfs2_lookupi
(
child
->
d_inode
,
&
dotdot
,
1
);
if
(
!
inode
)
return
ERR_PTR
(
-
ENOENT
);
...
...
fs/gfs2/ops_inode.c
浏览文件 @
a569c711
...
...
@@ -74,7 +74,7 @@ static int gfs2_create(struct inode *dir, struct dentry *dentry,
return
PTR_ERR
(
inode
);
}
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
,
nd
);
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
);
if
(
inode
)
{
if
(
!
IS_ERR
(
inode
))
{
gfs2_holder_uninit
(
ghs
);
...
...
@@ -109,7 +109,7 @@ static struct dentry *gfs2_lookup(struct inode *dir, struct dentry *dentry,
dentry
->
d_op
=
&
gfs2_dops
;
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
,
nd
);
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
);
if
(
inode
&&
IS_ERR
(
inode
))
return
ERR_CAST
(
inode
);
...
...
fs/gfs2/super.c
浏览文件 @
a569c711
...
...
@@ -389,7 +389,7 @@ int gfs2_jindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ji_gh)
break
;
INIT_LIST_HEAD
(
&
jd
->
extent_list
);
jd
->
jd_inode
=
gfs2_lookupi
(
sdp
->
sd_jindex
,
&
name
,
1
,
NULL
);
jd
->
jd_inode
=
gfs2_lookupi
(
sdp
->
sd_jindex
,
&
name
,
1
);
if
(
!
jd
->
jd_inode
||
IS_ERR
(
jd
->
jd_inode
))
{
if
(
!
jd
->
jd_inode
)
error
=
-
ENOENT
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录