Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
95e6d417
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看板
提交
95e6d417
编写于
11月 09, 2017
作者:
M
Miklos Szeredi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ovl: grab reference to workbasedir early
and related cleanups. Signed-off-by:
N
Miklos Szeredi
<
mszeredi@redhat.com
>
上级
f7e3a7d9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
7 deletion
+8
-7
fs/overlayfs/super.c
fs/overlayfs/super.c
+8
-7
未找到文件。
fs/overlayfs/super.c
浏览文件 @
95e6d417
...
...
@@ -889,7 +889,7 @@ static int ovl_get_workpath(struct ovl_fs *ufs, struct path *upperpath,
pr_warn
(
"overlayfs: workdir is in-use by another mount, accessing files from both mounts will result in undefined behavior.
\n
"
);
}
ufs
->
workbasedir
=
workpath
->
dentry
;
ufs
->
workbasedir
=
dget
(
workpath
->
dentry
)
;
err
=
0
;
out:
return
err
;
...
...
@@ -918,7 +918,7 @@ static int ovl_get_workdir(struct super_block *sb, struct ovl_fs *ufs,
struct
dentry
*
temp
;
int
err
;
ufs
->
workdir
=
ovl_workdir_create
(
sb
,
ufs
,
workpath
->
dentry
,
ufs
->
workdir
=
ovl_workdir_create
(
sb
,
ufs
,
ufs
->
workbasedir
,
OVL_WORKDIR_NAME
,
false
);
if
(
!
ufs
->
workdir
)
return
0
;
...
...
@@ -971,7 +971,7 @@ static int ovl_get_workdir(struct super_block *sb, struct ovl_fs *ufs,
static
int
ovl_get_indexdir
(
struct
super_block
*
sb
,
struct
ovl_fs
*
ufs
,
struct
ovl_entry
*
oe
,
struct
path
*
upperpath
,
struct
path
*
workpath
)
struct
path
*
upperpath
)
{
int
err
;
...
...
@@ -985,7 +985,7 @@ static int ovl_get_indexdir(struct super_block *sb, struct ovl_fs *ufs,
goto
out
;
}
ufs
->
indexdir
=
ovl_workdir_create
(
sb
,
ufs
,
workpath
->
dentry
,
ufs
->
indexdir
=
ovl_workdir_create
(
sb
,
ufs
,
ufs
->
workbasedir
,
OVL_INDEXDIR_NAME
,
true
);
if
(
ufs
->
indexdir
)
{
/* Verify upper root is index dir origin */
...
...
@@ -1212,7 +1212,7 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
}
if
(
!
(
ovl_force_readonly
(
ufs
))
&&
ufs
->
config
.
index
)
{
err
=
ovl_get_indexdir
(
sb
,
ufs
,
oe
,
&
upperpath
,
&
workpath
);
err
=
ovl_get_indexdir
(
sb
,
ufs
,
oe
,
&
upperpath
);
if
(
err
)
goto
out_put_indexdir
;
}
...
...
@@ -1243,7 +1243,7 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
for
(
i
=
0
;
i
<
numlower
;
i
++
)
mntput
(
stack
[
i
].
mnt
);
kfree
(
stack
);
mntput
(
workpath
.
mnt
);
path_put
(
&
workpath
);
if
(
upperpath
.
dentry
)
{
oe
->
has_upper
=
true
;
...
...
@@ -1283,7 +1283,8 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
kfree
(
stack
);
out_unlock_workdentry:
if
(
ufs
->
workdir_locked
)
ovl_inuse_unlock
(
workpath
.
dentry
);
ovl_inuse_unlock
(
ufs
->
workbasedir
);
dput
(
ufs
->
workbasedir
);
path_put
(
&
workpath
);
out_unlock_upperdentry:
if
(
ufs
->
upperdir_locked
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录